I am getting data via doctrine:
$pages = $this->getDoctrine()->getRepository(Pages::class)->findAll();
What I want to to is get all data, except the data with the slug cat
So I trying to achieve something like this:
$pages = $this->getDoctrine()->getRepository(Pages::class)->findAllExcept(['slug'=>'cat']);