/** * Load a single ClassRegistration object, * by ClassMeetingId, PersonId Index(es) * @param integer $intClassMeetingId * @param integer $intPersonId * @return ClassRegistration */ public static function LoadByClassMeetingIdPersonId($intClassMeetingId, $intPersonId, $objOptionalClauses = null) { return ClassRegistration::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::ClassRegistration()->ClassMeetingId, $intClassMeetingId), QQ::Equal(QQN::ClassRegistration()->PersonId, $intPersonId)), $objOptionalClauses); }