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