1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/Rec1.php

16 lines
297 B
PHP
Raw Normal View History

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