/**
  * Fetch Verwantschap which references this Mantelzorgers. Will return null in case reference is invalid.
  * `mantelzorgers`.`verwsch_id` -> `verwantschap`.`id`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return Verwantschap
  */
 public function fetchVerwantschap(PDO $db, $sort = null)
 {
     $filter = array(Verwantschap::FIELD_ID => $this->getVerwschId());
     $result = Verwantschap::findByFilter($db, $filter, true, $sort);
     return empty($result) ? null : $result[0];
 }
 /**
  * get single Verwantschap instance from a DOMElement
  *
  * @param DOMElement $node
  * @return Verwantschap
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new Verwantschap();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }