Somebody knows if this function has an error? $criteria = new RepositorySearchCriteria(); Because is not working in my code. Thank you.