setTableName('contact'); $this->hasColumn('id', 'integer', 11, array('primary' => true, 'autoincrement' => true)); $this->hasColumn('name', 'string', 255); } public function setUp() { $this->hasOne('Adult', array('local' => 'id', 'foreign' => 'contact_id')); $this->hasOne('User', array('local' => 'id', 'foreign' => 'contact_id')); } }