public function configureDoctrine(Doctrine_Manager $manager) { $options = array('baseClassName' => 'BaseDoctrineRecord'); sfConfig::set('doctrine_model_builder_options', $options); $manager->setCollate('utf8_unicode_ci'); $manager->setCharset('utf8'); }
public function configureDoctrine(Doctrine_Manager $manager) { // yiid activity dispatcher $this->dispatcher->connect('new-yiid-activity', array('StatsFeeder', 'track')); $manager->setCollate('utf8_unicode_ci'); $manager->setCharset('utf8'); }
public function configureDoctrine(Doctrine_Manager $manager) { Doctrine_Core::debug(sfConfig::get('dm_debug')); /* * Configure inheritance */ $manager->setAttribute(Doctrine_Core::ATTR_TABLE_CLASS, 'myDoctrineTable'); $manager->setAttribute(Doctrine_Core::ATTR_QUERY_CLASS, 'myDoctrineQuery'); $manager->setAttribute(Doctrine_Core::ATTR_COLLECTION_CLASS, 'myDoctrineCollection'); /* * Configure charset */ $manager->setCharset('utf8'); $manager->setCollate('utf8_unicode_ci'); /* * Configure hydrators */ $manager->registerHydrator('dmFlat', 'Doctrine_Hydrator_dmFlatDriver'); /* * Configure builder */ sfConfig::set('doctrine_model_builder_options', array('generateTableClasses' => true, 'baseClassName' => 'myDoctrineRecord', 'baseTableClassName' => 'myDoctrineTable', 'suffix' => '.class.php')); }
public function configureDoctrine(Doctrine_Manager $manager) { $manager->setCollate('utf8_unicode_ci'); $manager->setCharset('utf8'); }
public function configureDoctrine(Doctrine_Manager $manager) { $manager->setCollate('utf8_unicode_ci'); $manager->setCharset('utf8'); //$manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, new Doctrine_Cache_Apc()); }
public function configureDoctrine(Doctrine_Manager $manager) { $manager->setCollate('utf8_unicode_ci'); $manager->setCharset('utf8'); Doctrine_Migration_Base::setDefaultTableOptions(array('type' => 'INNODB', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci')); }