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

14 lines
345 B
PHP

<?php
class BarRecord extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('bar');
$this->hasColumn('name', 'string', 200);
}
public function setUp()
{
$this->hasMany('FooRecord as Foo', array('local' => 'barId', 'foreign' => 'fooId', 'refClass' => 'FooBarRecord'));
}
}