当前位置: 首页>>代码示例>>PHP>>正文


PHP sfDoctrineRecord::setUp方法代码示例

本文整理汇总了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'));
 }
开发者ID:abdocmd,项目名称:spmillen,代码行数:7,代码来源:BaseSelectedGroupField.class.php

示例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);
 }
开发者ID:huqa,项目名称:trevents,代码行数:7,代码来源:BasesfGuardRememberKey.class.php

示例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);
 }
开发者ID:sundesz,项目名称:crafthouse,代码行数:7,代码来源:BaseJobeetJob.class.php

示例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'));
 }
开发者ID:rmoralesm,项目名称:FONDEF-D08I1205,代码行数:7,代码来源:BaseCaieRespuestas.class.php

示例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'));
 }
开发者ID:rabbitdigital,项目名称:HRM,代码行数:7,代码来源:BaseDisplayFieldGroup.class.php

示例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'));
 }
开发者ID:abdocmd,项目名称:spmillen,代码行数:7,代码来源:BaseScreen.class.php

示例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);
 }
开发者ID:kidh0,项目名称:tiagotrespach,代码行数:7,代码来源:BasePhoto.class.php

示例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);
 }
开发者ID:eyumay,项目名称:srms.psco,代码行数:7,代码来源:BaseProgramType.class.php

示例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'));
 }
开发者ID:remberto,项目名称:university,代码行数:7,代码来源:BaseAdmMenus.class.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Town as Towns', array(
          'local' => 'id',
          'foreign' => 'state_id'));
 }
开发者ID:nacef,项目名称:ijani,代码行数:7,代码来源:BaseState.class.php

示例11: 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

示例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'));
 }
开发者ID:limitium,项目名称:uberlov,代码行数:7,代码来源:BaseProfitDetail.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


注:本文中的sfDoctrineRecord::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。