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