mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3096: JoinColumn definition does not regard column type with value translation #3844
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 22, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user razorness:
I made a custom column type for doctrine which converts values between MySQL and PHP.
When I use a field with this column type as JoinColumn in a ManyToOne relation plus the column has a different name than the field, the BasicEntityPersister gets always "null" when he is asking for type of the given column name because he is ascing for given column name and not field name.
Example
Make.php:
Foobar.php
The localeType translates between long and short language codes. For exmaple "de" (PHP) to "de_DE" (MySQL).
@doctrinebot commented on GitHub (Apr 22, 2014):
Comment created by @ocramius:
This is not a blocker, as you're really going into custom implementations.
You should probably provide a failing test case to clarify what you are doing
@doctrinebot commented on GitHub (Nov 4, 2015):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Nov 4, 2015):
Comment created by razorness:
Fixed in newer Versions.