Version: 2.7
Smart query conditions
When you want to make complex queries, you can easily end up with a lot of boilerplate code full of curly brackets:
For AND condition with single field, you can also do this:
Another way to do this by including the operator in your keys:
For comparison operators, you can also use their mathematical symbols:
There is also shortcut for $in
- simply provide array as value and it
will be converted automatically:
For primary key lookup, you can provide the array directly to EntityManager.find()
: