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

16 lines
340 B
PHP
Raw Normal View History

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