public function hasMany($table) { $this->setTable('foreign', $table); $this->setRelationType(__FUNCTION__); return $this; }