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


PHP Doctrine_Record::setUp方法代码示例

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


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

示例1: setUp

 function setUp()
 {
     parent::setUp();
     $this->actAs('Timestampable');
     $this->hasMany('HechoEmpresa as HechosEmpresa', array('local' => 'etapa_empresa_id', 'foreign' => 'hecho_empresa_id', 'refClass' => 'EtapaEmpresaHasHechoEmpresa'));
     $this->hasMany('ApoyoEstado as ApoyosEstado', array('local' => 'etapa_empresa_id', 'foreign' => 'apoyo_estado_id', 'refClass' => 'EtapaEmpresaHasApoyoEstado'));
 }
开发者ID:e-gob,项目名称:ChileAtiende,代码行数:7,代码来源:etapa_empresa.php

示例2: setUp

 function setUp()
 {
     parent::setUp();
     $this->hasOne('Formulario', array('local' => 'formulario_id', 'foreign' => 'id'));
     $this->hasOne('Tarea', array('local' => 'tarea_id', 'foreign' => 'id'));
     $this->hasMany('Evento as Eventos', array('local' => 'id', 'foreign' => 'paso_id'));
 }
开发者ID:chileindica,项目名称:SIMPLE,代码行数:7,代码来源:paso.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Default_Model_Twitter as Twitter', array('local' => 'twitter_id', 'foreign' => 'id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
开发者ID:eleclerc,项目名称:ottawaphpcommunity,代码行数:7,代码来源:TwitterPost.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Domicilio as Domicilios', array(
          'local' => 'id',
          'foreign' => 'Calle_id'));
 }
开发者ID:nahue,项目名称:Siefu,代码行数:7,代码来源:BaseCalle.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('RingsideApp', array('local' => 'app_id', 'foreign' => 'id'));
     $this->hasOne('RingsideUser', array('local' => 'user_id', 'foreign' => 'id'));
     $this->actAs('Timestampable', array('created' => array('name' => 'created', 'type' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'disabled' => false, 'options' => array()), 'updated' => array('name' => 'modified', 'type' => 'timestamp', 'format' => 'Y-m-d H:i:s', 'disabled' => false, 'options' => array())));
 }
开发者ID:jkinner,项目名称:ringside,代码行数:7,代码来源:RingsideUsersApp.php

示例6: setUp

 public function setUp()
 {
     $this->hasOne('IcingaInstances as instance', array('local' => 'instance_id', 'foreign' => 'instance_id'));
     $this->hasOne("IcingaHosts as members", array('local' => 'hostgroup_id', 'foreign' => 'host_object_id', 'refClass' => 'IcingaHostgroupMembers'));
     $this->hasOne('IcingaObjects as object', array('local' => 'hostgroup_object_id', 'foreign' => 'object_id'));
     parent::setUp();
 }
开发者ID:philippjenni,项目名称:icinga-web,代码行数:7,代码来源:BaseIcingaHostgroups.php

示例7: setUp

 public function setUp()
 {
     $this->hasOne('IcingaInstances as instance', array('local' => 'instance_id', 'foreign' => 'instance_id'));
     $this->hasOne('IcingaHostescalations as hostescalation', array('local' => 'hostescalation_id', 'foreign' => 'hostescalation_id'));
     $this->hasOne('IcingaContacts as contact', array('local' => 'contact_object_id', 'foreign' => 'contact_object_id'));
     parent::setUp();
 }
开发者ID:philippjenni,项目名称:icinga-web,代码行数:7,代码来源:BaseIcingaHostescalationContacts.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('NsmPrincipal', array('local' => 'cpc_principal_id', 'foreign' => 'principal_id'));
     $this->hasOne('NsmPrincipal as principal', array('local' => 'cpc_principal_id', 'foreign' => 'principal_id'));
     $this->hasOne('Cronk', array('local' => 'cpc_cronk_id', 'foreign' => 'cronk_id'));
 }
开发者ID:philippjenni,项目名称:icinga-web,代码行数:7,代码来源:BaseCronkPrincipalCronk.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('User as Owner', array('local' => 'user_id', 'foreign' => 'id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
开发者ID:uwitec,项目名称:mgoa,代码行数:7,代码来源:BaseForms.php

示例10: setUp

 function setUp()
 {
     parent::setUp();
     $this->hasOne('Proceso', array('local' => 'proceso_id', 'foreign' => 'id'));
     $this->hasMany('Campo as Campos', array('local' => 'id', 'foreign' => 'documento_id'));
     $this->hasOne('HsmConfiguracion', array('local' => 'hsm_configuracion_id', 'foreign' => 'id'));
 }
开发者ID:diikibernum,项目名称:SIMPLE,代码行数:7,代码来源:documento.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('User', array('local' => 'id', 'foreign' => 'site_id'));
     $nestedset0 = new Doctrine_Template_NestedSet(array('hasManyRoots' => true, 'rootColumnName' => 'root_id'));
     $this->actAs($nestedset0);
 }
开发者ID:hbasria,项目名称:pjango,代码行数:7,代码来源:BaseSite.php

示例12: setUp

 function setUp()
 {
     parent::setUp();
     $this->hasOne('Accion', array('local' => 'accion_id', 'foreign' => 'id'));
     $this->hasOne('Tarea', array('local' => 'tarea_id', 'foreign' => 'id'));
     $this->hasOne('Paso', array('local' => 'paso_id', 'foreign' => 'id'));
 }
开发者ID:chileindica,项目名称:SIMPLE,代码行数:7,代码来源:evento.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Products', array('local' => 'product_id', 'foreign' => 'product_id', 'onDelete' => 'CASCADE'));
     $this->hasOne('ProductsCategories', array('local' => 'category_id', 'foreign' => 'category_id'));
     $this->hasOne('Wiki', array('local' => 'wiki_id', 'foreign' => 'wiki_id', 'onDelete' => 'CASCADE'));
 }
开发者ID:kokkez,项目名称:shineisp,代码行数:7,代码来源:BaseWikilinks.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Servers', array('local' => 'server_id', 'foreign' => 'server_id', 'onDelete' => 'CASCADE'));
     $this->hasOne('Orders', array('local' => 'order_id', 'foreign' => 'order_id', 'onDelete' => 'CASCADE'));
     $this->hasOne('OrdersItems', array('local' => 'orderitem_id', 'foreign' => 'detail_id', 'onDelete' => 'CASCADE'));
 }
开发者ID:kokkez,项目名称:shineisp,代码行数:7,代码来源:BaseOrdersItemsServers.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->hasMany('CronkCategoryCronk', array('local' => 'cc_id', 'foreign' => 'ccc_cc_id'));
     $this->hasMany('CronkPrincipalCategory', array('local' => 'cc_id', 'foreign' => 'category_id'));
     $this->hasMany('NsmPrincipal as principals', array('local' => 'category_id', 'foreign' => 'principal_id', 'refClass' => 'CronkPrincipalCategory'));
 }
开发者ID:philippjenni,项目名称:icinga-web,代码行数:7,代码来源:BaseCronkCategory.php


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