當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。