Commit da437ddf authored by zYne's avatar zYne

--no commit message

--no commit message
parent cfededd6
<?php
<?php
class gnatUserTable { }
class gnatUser extends Doctrine_Record
......@@ -7,13 +6,13 @@ class gnatUser extends Doctrine_Record
public function setTableDefinition()
{
$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()
{
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'));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment