本文整理汇总了PHP中sfDoctrineRecord类的典型用法代码示例。如果您正苦于以下问题:PHP sfDoctrineRecord类的具体用法?PHP sfDoctrineRecord怎么用?PHP sfDoctrineRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了sfDoctrineRecord类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:nacef,项目名称:ijani,代码行数:12,代码来源:Service.php
示例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
}
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:17,代码来源:PerformanceReviewDao.php
示例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'));
}
开发者ID:limitium,项目名称:uberlov,代码行数:7,代码来源:BaseProfitDetail.class.php
示例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'));
}
开发者ID:remberto,项目名称:university,代码行数:7,代码来源:BaseAdmMenus.class.php
示例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);
}
开发者ID:nidhhoggr,项目名称:supra,代码行数:7,代码来源:BaseAccountRecord.class.php
示例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);
}
开发者ID:sundesz,项目名称:crafthouse,代码行数:7,代码来源:BaseJobeetJob.class.php
示例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'));
}
开发者ID:rmoralesm,项目名称:FONDEF-D08I1205,代码行数:7,代码来源:BaseCaieRespuestas.class.php
示例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'));
}
开发者ID:rabbitdigital,项目名称:HRM,代码行数:7,代码来源:BaseDisplayFieldGroup.class.php
示例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'));
}
开发者ID:abdocmd,项目名称:spmillen,代码行数:7,代码来源:BaseScreen.class.php
示例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);
}
开发者ID:kidh0,项目名称:tiagotrespach,代码行数:7,代码来源:BasePhoto.class.php
示例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);
}
开发者ID:eyumay,项目名称:srms.psco,代码行数:7,代码来源:BaseProgramType.class.php
示例12: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('MobilyrentContrat', array('local' => 'idcontrat', 'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
开发者ID:sfinx13,项目名称:appsmartproject,代码行数:7,代码来源:BaseMobilyrentPlein.class.php
示例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'));
}
开发者ID:remberto,项目名称:Alternativa,代码行数:7,代码来源:BaseClaPais.class.php
示例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'));
}
开发者ID:szelpe,项目名称:cukorka,代码行数:7,代码来源:BaseLecture.class.php
示例15: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Usuario', array('local' => 'usuario_id', 'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable();
$this->actAs($timestampable0);
}
开发者ID:BGCX067,项目名称:f2gsym-svn-to-git,代码行数:7,代码来源:BaseTestimonio.class.php
示例16: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('Utilisateur', array(
'local' => 'id_agent',
'foreign' => 'id_utilisateur'));
}
开发者ID:nacef,项目名称:juriste,代码行数:7,代码来源:BaseDispatch.class.php
示例17: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('JobVacancy', array('local' => 'vacancyId', 'foreign' => 'id'));
$this->hasOne('JobCandidate', array('local' => 'candidateId', 'foreign' => 'id'));
$this->hasMany('JobInterview', array('local' => 'id', 'foreign' => 'candidateVacancyId'));
}
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:7,代码来源:BaseJobCandidateVacancy.class.php
示例18: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Revision', array('local' => 'id', 'foreign' => 'revision_state_id'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
开发者ID:retrofox,项目名称:Huemul,代码行数:7,代码来源:BaseRevisionState.class.php
示例19: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Town as Towns', array(
'local' => 'id',
'foreign' => 'state_id'));
}
开发者ID:nacef,项目名称:ijani,代码行数:7,代码来源:BaseState.class.php
注:本文中的sfDoctrineRecord类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论