1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/gnatUser.php
2007-09-20 19:58:34 +00:00

20 lines
453 B
PHP

<?php
class gnatUserTable { }
class gnatUser extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 150);
$this->hasColumn('foreign_id', 'integer', 10, array ('unique' => true,));
}
public function setUp()
{
parent::setUp();
$this->hasOne('gnatEmail as Email', array('local'=> 'foreign_id', 'foreign'=>'id', 'onDelete'=>'CASCADE'));
}
}