Setting attribute from doctrine.yml is semi-broken and quirky currently. It is in the process of being addressed. Until then please just set attributes manually at the code level.
Thanks, Jon On Jan 11, 2008 2:00 PM, Michael Smith <[EMAIL PROTECTED]> wrote: > > I wanted my enum fields to use mysql enums so I created the following > doctrine.yml: > > all: > attributes: > #use mysql enums instead of int > use_native_enum: true > > This didn't effect it. I checked out sfDoctrineDatabase and added > print_r($this->_doctrineConnection->getAttributes()); to the end of > the initialize() and get: > > [112] => INNODB > [117] => 1 > [140] => 7 > [107] => > [101] => > [100] => Doctrine_EventListener_Chain Object > > Which shows USE_NATIVE_ENUM (117) being set but if I add print_r($this- > >conn->getAttributes()); to the enum creation section section in > Doctrine_DataDict_Mysql the attributes set in doctrine.yml's aren't > there. All I get is: > > [112] => INNODB > > If I manually add $this->setAttribute(Doctrine::ATTR_USE_NATIVE_ENUM, > true); to the Doctrine_Connection_Mysql class it works fine. Anyone > know what I must be doing wrong in the config? > > Thanks, > Michael > > > -- Jonathan Wage http://www.jwage.com http://www.centresource.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---