src/Slashworks/BackendBundle/Model/om/BaseUserRoleQuery.php
public static function create($modelAlias = null, $criteria = null)
    {
        if ($criteria instanceof UserRoleQuery) {
            return $criteria;
        }
        $query = new UserRoleQuery(null, null, $modelAlias);

        if ($criteria instanceof Criteria) {
            $query->mergeWith($criteria);
        }

        return $query;
    }
public static function create($modelAlias = null, $criteria = null)
    {
        if ($criteria instanceof UserRoleQuery) {
            return $criteria;
        }
        $query = new UserRoleQuery(null, null, $modelAlias);

        if ($criteria instanceof Criteria) {
            $query->mergeWith($criteria);
        }

        return $query;
    }
public static function create ( $ modelAlias = null , $ criteria = null ) { if ( $ criteria instanceof UserRoleQuery ) { return $ criteria ; } $ query = new UserRoleQuery ( null , null , $ modelAlias ) ; if ( $ criteria instanceof Criteria ) { $ query -> mergeWith ( $ criteria ) ; } return $ query ; }
Returns a new UserRoleQuery object.

@param     string $modelAlias The alias of a model in the query
@param   UserRoleQuery|Criteria $criteria Optional Criteria to build the query from

@return UserRoleQuery
Returns a new UserRoleQuery object .