[DC-1003] _processWhereIn does not allow the use of named query parameters Created: 05/May/11 Updated: 06/May/11
|Reporter:||alex pilon||Assignee:||Guilherme Blanco|
karmic, php 5.2.10, apache2
When writing a query such as
you are unable to then
Doctrine complains that you may not mix positional and named query parameters.
The attached patch fixes this by checking if the key of the passed in parameter is non numeric and if so setting the "value" of the parameter place holder to the value of the key.
|Comment by alex pilon [ 05/May/11 ]|
I discovered an issue with the above patch. I am working on a better version.
|Comment by alex pilon [ 06/May/11 ]|
Here is a second version.. it is a little bit sloppy. Is there a resource I can find on here that will help me to improve code quality/unit test this?