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

11 lines
312 B
PHP

<?php
class BarRecord extends Doctrine_Entity
{
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'));
}
}