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