[DDC-2152] Values do not covert if type is custom Created: 17/Nov/12 Updated: 23/Dec/12 Resolved: 23/Dec/12 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | Git Master |
| Fix Version/s: | None |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | Valery Dubrava | Assignee: | Benjamin Eberlei |
| Resolution: | Can't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
PHP 5.3.15, PDO mysql, sumbodule: |
||
| Description |
|
I have a custom type EnumDatatype. If I set single parameter for repository's method findBy everything works fine: value converted to database format (method convertToDatabaseValue invoked). But if I specify array of values of such type it will not convert to database format. |
| Comments |
| Comment by Fabio B. Silva [ 22/Nov/12 ] |
|
Hi Valery, Did you implemented canRequireSQLConversion ? Cheers.. |
| Comment by Benjamin Eberlei [ 23/Dec/12 ] |
|
This can't be fixed because of architectural reasons. Only strings and integers can be arrays |