本文整理汇总了PHP中AIR2_Record::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP AIR2_Record::setUp方法的具体用法?PHP AIR2_Record::setUp怎么用?PHP AIR2_Record::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIR2_Record
的用法示例。
在下文中一共展示了AIR2_Record::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('TankResponseSet', array('local' => 'tr_trs_id', 'foreign' => 'trs_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Question', array('local' => 'sr_ques_id', 'foreign' => 'ques_id'));
$this->hasOne('TankSource', array('local' => 'tr_tsrc_id', 'foreign' => 'tsrc_id', 'onDelete' => 'CASCADE'));
}
示例2: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('Project', array('local' => 'porg_prj_id', 'foreign' => 'prj_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Organization', array('local' => 'porg_org_id', 'foreign' => 'org_id', 'onDelete' => 'CASCADE'));
$this->hasOne('User as ContactUser', array('local' => 'porg_contact_user_id', 'foreign' => 'user_id', 'onDelete' => 'CASCADE'));
}
示例3: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('User', array('local' => 'bin_user_id', 'foreign' => 'user_id', 'onDelete' => 'CASCADE'));
$this->hasMany('BinSource', array('local' => 'bin_id', 'foreign' => 'bsrc_bin_id'));
$this->hasMany('BinSrcResponseSet', array('local' => 'bin_id', 'foreign' => 'bsrs_bin_id'));
}
示例4: setUp
/**
* Setup relationships
*/
public function setUp()
{
parent::setUp();
$this->hasMany('TestRelatedRecord', array('local' => 'test_id', 'foreign' => 'tr_test_id'));
// Tagging
$this->hasMany('TagTestRecord as Tags', array('local' => 'test_id', 'foreign' => 'tag_xid'));
}
示例5: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('TankSource', array('local' => 'trs_tsrc_id', 'foreign' => 'tsrc_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Inquiry', array('local' => 'srs_inq_id', 'foreign' => 'inq_id'));
$this->hasMany('TankResponse', array('local' => 'trs_id', 'foreign' => 'tr_trs_id'));
}
示例6: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('Inquiry', array('local' => 'iorg_inq_id', 'foreign' => 'inq_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Organization', array('local' => 'iorg_org_id', 'foreign' => 'org_id', 'onDelete' => 'CASCADE'));
$this->hasOne('ImageOrgLogo as OrgLogo', array('local' => 'iorg_org_id', 'foreign' => 'img_xid'));
}
示例7: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('SrcResponseSet', array('local' => 'sr_srs_id', 'foreign' => 'srs_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Question', array('local' => 'sr_ques_id', 'foreign' => 'ques_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Source', array('local' => 'sr_src_id', 'foreign' => 'src_id', 'onDelete' => 'CASCADE'));
$this->hasMany('SrAnnotation', array('local' => 'sr_id', 'foreign' => 'sran_sr_id'));
}
示例8: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('TankSource', array('local' => 'tf_tsrc_id', 'foreign' => 'tsrc_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Fact', array('local' => 'tf_fact_id', 'foreign' => 'fact_id'));
$this->hasOne('FactValue as AnalystFV', array('local' => 'sf_fv_id', 'foreign' => 'fv_id'));
$this->hasOne('FactValue as SourceFV', array('local' => 'sf_src_fv_id', 'foreign' => 'fv_id'));
}
示例9: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('Bin', array('local' => 'bsrs_bin_id', 'foreign' => 'bin_id', 'onDelete' => 'CASCADE'));
$this->hasOne('SrcResponseSet', array('local' => 'bsrs_srs_id', 'foreign' => 'srs_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Inquiry', array('local' => 'bsrs_inq_id', 'foreign' => 'inq_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Source', array('local' => 'bsrs_src_id', 'foreign' => 'src_id', 'onDelete' => 'CASCADE'));
}
示例10: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('User', array('local' => 'uo_user_id', 'foreign' => 'user_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Organization', array('local' => 'uo_org_id', 'foreign' => 'org_id', 'onDelete' => 'CASCADE'));
$this->hasOne('AdminRole', array('local' => 'uo_ar_id', 'foreign' => 'ar_id'));
$this->hasMany('UserOrg as SelfSameOrg', array('local' => 'uo_org_id', 'foreign' => 'uo_org_id'));
}
示例11: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasMany('ProjectActivity', array('local' => 'prj_id', 'foreign' => 'pa_prj_id'));
$this->hasMany('ProjectAnnotation', array('local' => 'prj_id', 'foreign' => 'prjan_prj_id'));
$this->hasMany('ProjectInquiry', array('local' => 'prj_id', 'foreign' => 'pinq_prj_id'));
$this->hasMany('ProjectMessage', array('local' => 'prj_id', 'foreign' => 'pm_pj_id'));
$this->hasMany('ProjectOrg', array('local' => 'prj_id', 'foreign' => 'porg_prj_id'));
$this->hasMany('PrjOutcome', array('local' => 'prj_id', 'foreign' => 'pout_prj_id'));
$this->hasMany('SrcActivity', array('local' => 'prj_id', 'foreign' => 'sact_prj_id'));
// Tagging
$this->hasMany('TagProject as Tags', array('local' => 'prj_id', 'foreign' => 'tag_xid'));
// Organization this project is default for (optional)
$this->hasMany('Organization as OrgDefault', array('local' => 'prj_id', 'foreign' => 'org_default_prj_id'));
}
示例12: setUp
/**
* Set table relations
*
* @return unknown
*/
public function setUp()
{
parent::setUp();
$this->hasOne('Inquiry', array('local' => 'inqan_inq_id', 'foreign' => 'inq_id', 'onDelete' => 'CASCADE'));
}
示例13: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('PreferenceType', array('local' => 'ptv_pt_id', 'foreign' => 'pt_id'));
$this->hasMany('SrcPreference', array('local' => 'ptv_id', 'foreign' => 'sp_ptv_id'));
}
示例14: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('Source', array('local' => 'so_src_id', 'foreign' => 'src_id', 'onDelete' => 'CASCADE'));
$this->hasOne('Organization', array('local' => 'so_org_id', 'foreign' => 'org_id', 'onDelete' => 'CASCADE'));
}
示例15: setUp
/**
* Set table relations
*/
public function setUp()
{
parent::setUp();
$this->hasOne('TagMaster', array('local' => 'iptc_id', 'foreign' => 'tm_iptc_id'));
}