本文整理汇总了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);
}
示例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'));
}
示例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);
}
示例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'));
}
示例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);
}
示例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'));
}
示例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);
}
示例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);
}
示例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'));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}