-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDC-2290: Infer custom Types from the field for query parameters #2991
Comments
Comment created by mnapoli: |
Comment created by mnapoli: The test is in this branch: https://github.com/myc-sense/doctrine2/tree/[DDC-2290](http://www.doctrine-project.org/jira/browse/DDC-2290) |
Comment created by mnapoli: The organization name has changed so the previous URL is a 404. Here is the branch containing the failing testcase: https://github.com/myclabs/doctrine2/tree/[DDC-2290](http://www.doctrine-project.org/jira/browse/DDC-2290) |
Comment created by benjamin: Any news on this one? Also, I just noticed that it does not cover the original problem I've reported in DDC-2224: I was specifically talking about Should we reopen DDC-2224? |
Comment created by @doctrinebot: A related Github Pull-Request [GH-1339] was unlabeled: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Lack of this feature seems to be the root cause of #4632 |
Jira issue originally created by user mnapoli:
When using a mapping Type that declares
convertToDatabaseValue
, the method is not always called in queries.Example:
(with
entity.field
being of custom type 'the_mapping_type')Type::convertToDatabaseValue()
is correctly called when using:But it is not called when using:
which gives a query that returns invalid results.
Like other mapping types in this situation, there is no reason the type is not inferred automatically from the field.
I have written a failing test case in Doctrine\Tests\ORM\Functional\TypeValueSqlTest:
The text was updated successfully, but these errors were encountered: