當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。