/** * Fetch Hulpverleners which references this AanvraagOverleg. Will return null in case reference is invalid. * `aanvraag_overleg`.`id_organisator` -> `hulpverleners`.`id` * * @param PDO $db a PDO Database instance * @param array $sort array of DSC instances * @return Hulpverleners */ public function fetchHulpverleners(PDO $db, $sort = null) { $filter = array(Hulpverleners::FIELD_ID => $this->getIdOrganisator()); $result = Hulpverleners::findByFilter($db, $filter, true, $sort); return empty($result) ? null : $result[0]; }
/** * Fetch Hulpverleners's which this Persoon references. * `persoon`.`id` -> `hulpverleners`.`id` * * @param PDO $db a PDO Database instance * @param array $sort array of DSC instances * @return Hulpverleners[] */ public function fetchHulpverlenersCollection(PDO $db, $sort = null) { $filter = array(Hulpverleners::FIELD_ID => $this->getId()); return Hulpverleners::findByFilter($db, $filter, true, $sort); }