本文整理汇总了PHP中sfDoctrineRecord类的典型用法代码示例。如果您正苦于以下问题:PHP sfDoctrineRecord类的具体用法?PHP sfDoctrineRecord怎么用?PHP sfDoctrineRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了sfDoctrineRecord类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deleteFromIndex
/**
* Request a document deletion from the search engine
*
* @param sfDoctrineRecord $record The record to unindex
**/
public function deleteFromIndex(sfDoctrineRecord $record)
{
$this->_searchHandler->unindex($record->getUniqueId());
if($this->_inTransaction == 0)
$this->_searchHandler->commit();
}
示例2: saveReview
/**
*
* @param sfDoctrineRecord $review
* @return PerformanceReview
*/
public function saveReview(sfDoctrineRecord $review)
{
try {
$review->save();
$review->refresh();
return $review;
//@codeCoverageIgnoreStart
} catch (Exception $e) {
throw new DaoException($e->getMessage(), $e->getCode(), $e);
}
//@codeCoverageIgnoreEnd
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Profit', array('local' => 'profit_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
$this->hasOne('Style', array('local' => 'style_id', 'foreign' => 'id'));
$this->hasOne('Fish', array('local' => 'fish_id', 'foreign' => 'id'));
}
示例4: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('AdmMenus', array('local' => 'id', 'foreign' => 'adm_menu_id'));
$this->hasOne('ClaHabilitado', array('local' => 'habilitado', 'foreign' => 'id'));
$this->hasMany('AdmRolesMenus', array('local' => 'id', 'foreign' => 'adm_menu_id'));
}
示例5: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Account', array('local' => 'account_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('JobeetCategory', array('local' => 'category_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
$timestampable0 = new Doctrine_Template_Timestampable();
$this->actAs($timestampable0);
}
示例7: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('SfGuardUser', array('local' => 'id_user', 'foreign' => 'id'));
$this->hasOne('Encuestado', array('local' => 'id_encuestado', 'foreign' => 'id_encuestado'));
$this->hasOne('CaiePreguntas', array('local' => 'id_pregunta_caie', 'foreign' => 'id_pregunta_caie'));
}
示例8: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('ReportGroup', array('local' => 'report_group_id', 'foreign' => 'reportGroupId', 'onDelete' => 'cascade'));
$this->hasMany('AbstractDisplayField', array('local' => 'id', 'foreign' => 'display_field_group_id'));
$this->hasMany('SelectedDisplayFieldGroup', array('local' => 'id', 'foreign' => 'display_field_group_id'));
}
示例9: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Module', array('local' => 'module_id', 'foreign' => 'id'));
$this->hasMany('ScreenPermission', array('local' => 'id', 'foreign' => 'screen_id'));
$this->hasMany('MenuItem', array('local' => 'id', 'foreign' => 'screenId'));
}
示例10: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Gallery', array('local' => 'gallery_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
$sluggable0 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title')));
$this->actAs($sluggable0);
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Program as Programs', array('local' => 'id', 'foreign' => 'program_type_id'));
$timestampable0 = new Doctrine_Template_Timestampable();
$this->actAs($timestampable0);
}
示例12: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('MobilyrentContrat', array('local' => 'idcontrat', 'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
示例13: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('ClaDepartamento', array('local' => 'id_pais', 'foreign' => 'pais_id'));
$this->hasMany('DatRdeEstudiante', array('local' => 'id_pais', 'foreign' => 'pais_nac_id'));
$this->hasMany('HisRdeEstudiante', array('local' => 'id_pais', 'foreign' => 'pais_nac_id'));
}
示例14: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Aid as Aids', array('local' => 'id', 'foreign' => 'lecture_id'));
$this->hasOne('Course', array('local' => 'course_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
$this->hasMany('Homework as Homeworks', array('local' => 'id', 'foreign' => 'lecture_id'));
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Usuario', array('local' => 'usuario_id', 'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable();
$this->actAs($timestampable0);
}