[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 Sat May 25 14:11:27 UTC 2013 using JIRA 5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5.