[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:
git submodule
48dcee9d60459fce1542d11536d465f5d89cff55 library/doctrine (2.2.0-BETA2-160-g48dcee9)



 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 ?
Could you try to add a failing test case ?

Cheers..

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 Fri Oct 24 17:14:46 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.