コード例 #1
0
 /**
  * get single OmbMishandelvorm instance from a DOMElement
  *
  * @param DOMElement $node
  * @return OmbMishandelvorm
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new OmbMishandelvorm();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }
コード例 #2
0
 /**
  * Fetch OmbMishandelvorm's which this OmbMishandeling references.
  * `omb_mishandeling`.`id` -> `omb_mishandelvorm`.`mishandeling`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return OmbMishandelvorm[]
  */
 public function fetchOmbMishandelvormCollection(PDO $db, $sort = null)
 {
     $filter = array(OmbMishandelvorm::FIELD_MISHANDELING => $this->getId());
     return OmbMishandelvorm::findByFilter($db, $filter, true, $sort);
 }