/** * Load a single NarroRole object, * by RoleName Index(es) * @param string $strRoleName * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query * @return NarroRole */ public static function LoadByRoleName($strRoleName, $objOptionalClauses = null) { return NarroRole::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::NarroRole()->RoleName, $strRoleName)), $objOptionalClauses); }