/**
  * Fetch OverlegFiles which references this OverlegFilesRechten. Will return null in case reference is invalid.
  * `overleg_files_rechten`.`filename` -> `overleg_files`.`filename`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return OverlegFiles
  */
 public function fetchOverlegFiles(PDO $db, $sort = null)
 {
     $filter = array(OverlegFiles::FIELD_FILENAME => $this->getFilename());
     $result = OverlegFiles::findByFilter($db, $filter, true, $sort);
     return empty($result) ? null : $result[0];
 }
Ejemplo n.º 2
0
 /**
  * Fetch OverlegFiles's which this Overlegbasis references.
  * `overlegbasis`.`id` -> `overleg_files`.`overleg_id`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return OverlegFiles[]
  */
 public function fetchOverlegFilesCollection(PDO $db, $sort = null)
 {
     $filter = array(OverlegFiles::FIELD_OVERLEG_ID => $this->getId());
     return OverlegFiles::findByFilter($db, $filter, true, $sort);
 }