本文整理汇总了PHP中Doctrine_Manager::setCollate方法的典型用法代码示例。如果您正苦于以下问题:PHP Doctrine_Manager::setCollate方法的具体用法?PHP Doctrine_Manager::setCollate怎么用?PHP Doctrine_Manager::setCollate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine_Manager
的用法示例。
在下文中一共展示了Doctrine_Manager::setCollate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configureDoctrine
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');
}
示例2: configureDoctrine
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');
}
示例3: configureDoctrine
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'));
}
示例4: configureDoctrine
public function configureDoctrine(Doctrine_Manager $manager)
{
$manager->setCollate('utf8_unicode_ci');
$manager->setCharset('utf8');
}
示例5: configureDoctrine
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'));
}