setTableName('contact'); $this->hasColumn('name', 'string', 255); } public function setUp() { $this->hasMany('User', array('local' => 'id', 'foreign' => 'contact_id')); } }