/**
  * get single ManchesEquipes instance from a DOMElement
  *
  * @param DOMElement $node
  * @return ManchesEquipes
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new ManchesEquipes();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }
Example #2
0
 /**
  * Fetch ManchesEquipes's which this Matchs references.
  * `matchs`.`id_match` -> `manches_equipes`.`id_match`
  *
  * @param PDO $db a PDO Database instance
  * @param array $sort array of DSC instances
  * @return ManchesEquipes[]
  */
 public function fetchManchesEquipesCollection(PDO $db, $sort = null)
 {
     $filter = array(ManchesEquipes::FIELD_ID_MATCH => $this->getIdMatch());
     return ManchesEquipes::findByFilter($db, $filter, true, $sort);
 }