/** * get single PatientTpopname instance from a DOMElement * * @param DOMElement $node * @return PatientTpopname */ public static function fromDOMElement(DOMElement $node) { $o = new PatientTpopname(); $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES)); $o->notifyPristine(); return $o; }
/** * Fetch PatientTpopname's which this Organisatie references. * `organisatie`.`id` -> `patient_tpopname`.`partner` * * @param PDO $db a PDO Database instance * @param array $sort array of DSC instances * @return PatientTpopname[] */ public function fetchPatientTpopnameCollection(PDO $db, $sort = null) { $filter = array(PatientTpopname::FIELD_PARTNER => $this->getId()); return PatientTpopname::findByFilter($db, $filter, true, $sort); }