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

16 lines
297 B
PHP

<?php
class Rec1 extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('first_name', 'string', 128, array ());
}
public function setUp()
{
$this->ownsOne('Rec2 as Account', array('local' => 'id', 'foreign' => 'user_id'));
}
}