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

16 lines
340 B
PHP

<?php
class Rec2 extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('user_id', 'integer', 10, array ( 'unique' => true,));
$this->hasColumn('address', 'string', 150, array ());
}
public function setUp()
{
$this->ownsOne('Rec1 as User', 'Rec2.user_id');
}
}