/** * Load a single Marriage object, * by LinkedMarriageId Index(es) * @param integer $intLinkedMarriageId * @return Marriage */ public static function LoadByLinkedMarriageId($intLinkedMarriageId, $objOptionalClauses = null) { return Marriage::QuerySingle(QQ::Equal(QQN::Marriage()->LinkedMarriageId, $intLinkedMarriageId), $objOptionalClauses); }
/** * Returns the most recent (or current) Marriage Record for this person * @return Marriage */ public function GetMostRecentMarriage() { return Marriage::QuerySingle(QQ::Equal(QQN::Marriage()->PersonId, $this->intId), QQ::OrderBy(QQN::Marriage()->DateStart, false)); }