On Tue, 20 Oct 2009 08:11:13 -0700 (PDT)
Hong Kil Dong <[email protected]> wrote:

> 
> I wish ot use ENUM type in my Doctrine model, and according to
> doctrine manual I have to set  attribute
> Doctrine::ATTR_USE_NATIVE_ENUM to TRUE (
> http://www.doctrine-project.org/documentation/manual/1_1/en/defining-models#columns:data-types:enum
> )
> 
> Where can I do it in symfony ?
> > 


IIRC you can do this in 'databases.yml' by adding extra params to the
relevant DB connection. For example,

all:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn: 'mysql:host=localhost;dbname=symfony_istb_doctrine'
      username: xxxx
      password: xxxx
      attributes:
        use_dql_callbacks: true
        use_native_enum:  true

HTH,

GM

-- 
   
Greg Maruszeczka

Office: 250.412.9651  ||  Mobile: 250.886.4577
Skype: websage.ca     ||  GTalk IM: gmarus

http://websage.ca

GnuPG-ID: 0x4309323E, http://pgp.mit.edu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to