moved Doctrine filters definitions because it's common between orm and dbal