I’d need to use a “magic finder” findBy method using comparative criteria (not only exact criteria). In other words, I need to do something like this:
$result = $purchases_repository->findBy(array("prize" => ">200"));
so that I’d get all purchases where the prize is above 200.
This is an example using the Expr() Class – I needed this too some days ago and it took me some time to find out what is the exact syntax and way of usage: