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


PHP myDoctrineRecord::setUp方法代码示例

本文整理汇总了PHP中myDoctrineRecord::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP myDoctrineRecord::setUp方法的具体用法?PHP myDoctrineRecord::setUp怎么用?PHP myDoctrineRecord::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myDoctrineRecord的用法示例。


在下文中一共展示了myDoctrineRecord::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('DmMedia as Medias', array('local' => 'id', 'foreign' => 'dm_media_folder_id'));
     $nestedset0 = new Doctrine_Template_NestedSet(array());
     $this->actAs($nestedset0);
 }
开发者ID:theolymp,项目名称:diem,代码行数:7,代码来源:BaseDmMediaFolder.class.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('DmLayout as Layout', array('local' => 'dm_layout_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasOne('DmPageView as PageView', array('local' => 'dm_page_view_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasMany('DmZone as Zones', array('local' => 'id', 'foreign' => 'dm_area_id'));
 }
开发者ID:theolymp,项目名称:diem,代码行数:7,代码来源:BaseDmArea.class.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('PetitionApiToken as ApiToken', array('local' => 'petition_api_token_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BaseApiTokenOffset.class.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Widget', array('local' => 'widget_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasOne('Petition', array('local' => 'petition_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasOne('PetitionText', array('local' => 'petition_text_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BaseWidgetPetition.class.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('MappingPair as Pairs', array('local' => 'id', 'foreign' => 'mapping_id'));
     $cachetaggable0 = new Doctrine_Template_Cachetaggable();
     $this->actAs($cachetaggable0);
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BaseMapping.class.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Group as Groups', array('refClass' => 'UserGroup', 'local' => 'user_id', 'foreign' => 'group_id'));
     $this->hasMany('Permission as Permissions', array('refClass' => 'UserPermission', 'local' => 'user_id', 'foreign' => 'permission_id'));
     $this->hasOne('Profile', array('local' => 'id', 'foreign' => 'user_id'));
 }
开发者ID:yasirgit,项目名称:afids,代码行数:7,代码来源:BaseUser.class.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('DmMailTemplate as Template', array('local' => 'dm_mail_template_id', 'foreign' => 'id', 'onDelete' => 'SET NULL'));
     $timestampable0 = new Doctrine_Template_Timestampable(array('updated' => array('disabled' => true)));
     $this->actAs($timestampable0);
 }
开发者ID:theolymp,项目名称:diem,代码行数:7,代码来源:BaseDmSentMail.class.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Mapping', array('local' => 'mapping_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $cachetaggable0 = new Doctrine_Template_Cachetaggable();
     $this->actAs($cachetaggable0);
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BaseMappingPair.class.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Petition', array('local' => 'petition_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasMany('PledgeText as PledgeTexts', array('local' => 'id', 'foreign' => 'pledge_item_id'));
     $this->hasMany('Pledge as Pledges', array('local' => 'id', 'foreign' => 'pledge_item_id'));
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:7,代码来源:BasePledgeItem.class.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $timestampable0 = new Doctrine_Template_Timestampable();
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'slug', 1 => 'name', 2 => 'title', 3 => 'h1', 4 => 'description', 5 => 'keywords', 6 => 'strip_words')));
     $this->actAs($timestampable0);
     $this->actAs($i18n0);
 }
开发者ID:jdart,项目名称:diem,代码行数:8,代码来源:BaseDmAutoSeo.class.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('DmUser as Users', array('refClass' => 'DmUserPermission', 'local' => 'dm_permission_id', 'foreign' => 'dm_user_id'));
     $this->hasMany('DmGroup as Groups', array('refClass' => 'DmGroupPermission', 'local' => 'dm_permission_id', 'foreign' => 'dm_group_id'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
开发者ID:theolymp,项目名称:diem,代码行数:8,代码来源:BaseDmPermission.class.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('sfGuardGroup as Group', array('local' => 'group_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasOne('sfGuardPermission as Permission', array('local' => 'permission_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:8,代码来源:BasesfGuardGroupPermission.class.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $cachetaggable0 = new Doctrine_Template_Cachetaggable(array());
     $this->actAs($timestampable0);
     $this->actAs($cachetaggable0);
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:8,代码来源:BaseRegistry.class.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $nestedset0 = new Doctrine_Template_NestedSet();
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'slug', 1 => 'name', 2 => 'title', 3 => 'h1', 4 => 'description', 5 => 'keywords', 6 => 'auto_mod', 7 => 'is_active', 8 => 'is_secure', 9 => 'is_indexable')));
     $this->actAs($nestedset0);
     $this->actAs($i18n0);
 }
开发者ID:rafaelgou,项目名称:diem,代码行数:8,代码来源:BaseDmPage.class.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('DmArea as Area', array('local' => 'dm_area_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasMany('DmWidget as Widgets', array('local' => 'id', 'foreign' => 'dm_zone_id'));
     $sortable0 = new Doctrine_Template_Sortable(array());
     $this->actAs($sortable0);
 }
开发者ID:theolymp,项目名称:diem,代码行数:8,代码来源:BaseDmZone.class.php


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