[DDC-1977] Undefined index in ParameterTypeInferer Created: 10/Aug/12 Updated: 29/Aug/12 Resolved: 25/Aug/12 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | 2.2.4, 2.3 |
| Security Level: | All |
| Type: | Bug | Priority: | Minor |
| Reporter: | Matt Button | Assignee: | Fabio B. Silva |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
PHP 5.3.6-13ubuntu3.8 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:54) { "package": "doctrine/common", "version": "2.2.2" } , , , , |
||
| Description |
|
Trying to bind an empty array as a parameter to a raw SQL query results in an undefined index error on line 59. |
| Comments |
| Comment by Matt Button [ 10/Aug/12 ] |
|
One way to work around this is to specify the type of the array as the third parameter to addParameter |
| Comment by Fabio B. Silva [ 25/Aug/12 ] |
|
Fixed by : https://github.com/doctrine/doctrine2/commit/ece6a005bcecc4a9e4a154d9379cfbe141370415 |