dbTable = 'public.tbl_benutzerfunktion'; $this->pk = 'benutzerfunktion_id'; } /** * Get the Benutzerfunktion using the person_id */ public function getByPersonId($person_id) { // Join with the table $this->addJoin('public.tbl_benutzer', 'uid'); return $this->loadWhere(array('person_id' => $person_id)); } }