1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/Rec2.php

11 lines
339 B
PHP
Raw Normal View History

<?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'));
}
}