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