Open
Description
We should assume every object passed must be an entity or specify a $type as third argument. Only primitive types should work with type inference. A deprecation is in order to allow users. to migrate of this behavior.
Problems with type inference:
- Performance problems due to trying to load mapping files and failing Massive performance issue with setParameter() and DateTime* objects #8113
- Ambiguities when inferring
DateTime
, todatetime
ordatetime_utc
. Insufficient autodetection of query parameter type #6443