From da437ddfa5a29d1168759d21197ab8ed3378b572 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 20 Sep 2007 19:58:34 +0000 Subject: [PATCH] --- models/gnatUser.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/models/gnatUser.php b/models/gnatUser.php index 5fb1c662f..e6a66915b 100644 --- a/models/gnatUser.php +++ b/models/gnatUser.php @@ -1,5 +1,4 @@ -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')); } }