1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/BarRecord.php
2008-02-08 17:41:01 +00:00

11 lines
312 B
PHP

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