本文整理汇总了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'));
}
示例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'));
}
示例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);
}
示例4: setUp
public function setUp()
{
parent::setUp();
$this->hasMany('Domicilio as Domicilios', array(
'local' => 'id',
'foreign' => 'Calle_id'));
}
示例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())));
}
示例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();
}
示例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();
}
示例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'));
}
示例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);
}
示例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'));
}
示例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);
}
示例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'));
}
示例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'));
}
示例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'));
}
示例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'));
}