updated Entity\Repository query.snippet