[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

PHP 5.3.15, PDO mysql, sumbodule:
git submodule
48dcee9d60459fce1542d11536d465f5d89cff55 library/doctrine (2.2.0-BETA2-160-g48dcee9)


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.

Comment by Fabio B. Silva [ 22/Nov/12 ]

Hi Valery,

Did you implemented canRequireSQLConversion ?
Could you try to add a failing test case ?


Comment by Benjamin Eberlei [ 23/Dec/12 ]

This can't be fixed because of architectural reasons. Only strings and integers can be arrays

Generated at Wed Oct 07 06:10:21 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.