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


PHP AIR2_Record::setUp方法代码示例

本文整理汇总了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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:TankResponse.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:ProjectOrg.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:Bin.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:TestRecord.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:TankResponseSet.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:InqOrg.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:SrcResponse.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:TankFact.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:BinSrcResponseSet.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:UserOrg.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:18,代码来源:Project.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:10,代码来源:InquiryAnnotation.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:9,代码来源:PreferenceTypeValue.php

示例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'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:9,代码来源:SrcOrg.php

示例15: setUp

 /**
  * Set table relations
  */
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('TagMaster', array('local' => 'iptc_id', 'foreign' => 'tm_iptc_id'));
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:8,代码来源:IptcMaster.php


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