1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests_old/models/Rec2.php
2008-02-08 17:41:01 +00:00

11 lines
339 B
PHP

<?php
class Rec2 extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('user_id', 'integer', 10, array ( 'unique' => true,));
$class->setColumn('address', 'string', 150, array ());
$class->hasOne('Rec1 as User', array('local' => 'user_id', 'foreign' => 'id'));
}
}