mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Joined columns not created with matching custom schema options #5768
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 @NathanBaulch on GitHub (Nov 13, 2017).
Originally assigned to: @NathanBaulch on GitHub.
I have a
many-to-onejoin between two string fields with the MySQL collation set toASCII. Unfortunately the join column generated bySchemaTooldoesn't inherit this collation because the incorrect metadata keyoptionsis passed instead ofcustomSchemaOptions.Changing line 673 of SchemaTool.php to:
fixes the issue and the migration diff tool no longer tries to convert my ASCII fields to the default UTF-8 collation.
@lcobucci commented on GitHub (Nov 27, 2017):
@NathanBaulch could you please send us a failing test case that reproduces that behaviour (maybe even the fix)? It would help us a lot to identify and fix the issue you're describing.
You can find examples on
388afb46d0/tests/Doctrine/Tests/ORM/Functional/Ticket@tok-88 commented on GitHub (Mar 1, 2018):
Anything new on this issue? @lcobucci
@Ocramius commented on GitHub (Mar 1, 2018):
@tok-amsiq seen
657a54da84?@tok-88 commented on GitHub (Mar 1, 2018):
@Ocramius briefly yes :)
But since it hadn't been reviewed, I was just curious about the progress. I have the same issue and used the columnDefinition as a solution, but if this worked it would of course be preferred.
@Ocramius commented on GitHub (Mar 1, 2018):
@tok-amsiq if you have problems with this specific issue, please do provide a reproducible test case as suggested in https://github.com/doctrine/doctrine2/issues/6823#issuecomment-347095121
@tok-88 commented on GitHub (Mar 1, 2018):
@Ocramius I figured @NathanBaulch already had with 657a54d, but I'll look more into it when I have the time!