Doctrine findBy ‘does not equal’
There is now a an approach to do this, using Doctrine’s Criteria. A full example can be seen in How to use a findBy method with comparative criteria, but a brief answer follows. use \Doctrine\Common\Collections\Criteria; // Add a not equals parameter to your criteria $criteria = new Criteria(); $criteria->where(Criteria::expr()->neq(‘prize’, 200)); // Find all from the … Read more