This commit is contained in:
parent
cfededd6e7
commit
da437ddfa5
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class gnatUserTable { }
|
class gnatUserTable { }
|
||||||
|
|
||||||
class gnatUser extends Doctrine_Record
|
class gnatUser extends Doctrine_Record
|
||||||
@ -7,13 +6,13 @@ class gnatUser extends Doctrine_Record
|
|||||||
public function setTableDefinition()
|
public function setTableDefinition()
|
||||||
{
|
{
|
||||||
$this->hasColumn('name', 'string', 150);
|
$this->hasColumn('name', 'string', 150);
|
||||||
$this->hasColumn('foreign_id', 'integer', 10, array ( 'unique' => true,));
|
$this->hasColumn('foreign_id', 'integer', 10, array ('unique' => true,));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->ownsOne('gnatEmail as Email', array('local'=>'foreign_id','foreign'=>'id','onDelete'=>'CASCADE'));
|
$this->hasOne('gnatEmail as Email', array('local'=> 'foreign_id', 'foreign'=>'id', 'onDelete'=>'CASCADE'));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user