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