Commit 19de41b1 authored by gnat's avatar gnat

added new models for some tests coming in the next commit

parent 04f1a135
......@@ -5,4 +5,6 @@ class Email extends Doctrine_Record
{
$this->hasColumn('address', 'string', 150, 'email|unique');
}
}
<?php
class gnatUserTable { }
class gnatUser extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 150);
$this->hasColumn('email_id', 'integer', 10, array ( 'unique' => true,));
}
public function setUp()
{
parent::setUp();
$this->ownsOne('Email', array('local'=>'email_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