本文整理汇总了PHP中sfDoctrineRecord::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP sfDoctrineRecord::setUp方法的具体用法?PHP sfDoctrineRecord::setUp怎么用?PHP sfDoctrineRecord::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfDoctrineRecord
的用法示例。
在下文中一共展示了sfDoctrineRecord::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('GroupField', array('local' => 'group_field_id', 'foreign' => 'groupFieldId', 'onDelete' => 'cascade'));
$this->hasOne('Report', array('local' => 'report_id', 'foreign' => 'reportId', 'onDelete' => 'cascade'));
$this->hasOne('SummaryDisplayField', array('local' => 'summary_display_field_id', 'foreign' => 'summaryDisplayFieldId', 'onDelete' => 'cascade'));
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('sfGuardUser as User', array('local' => 'user_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
示例3: 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);
}
示例4: 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'));
}
示例5: 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'));
}
示例6: 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'));
}
示例7: 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);
}
示例8: 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);
}
示例9: 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'));
}
示例10: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Town as Towns', array(
'local' => 'id',
'foreign' => 'state_id'));
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->hasOne('MobilyrentContrat', array('local' => 'idcontrat', 'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable(array());
$this->actAs($timestampable0);
}
示例12: 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'));
}
示例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);
}