BarRecord.php 345 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?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'));
    }
}