Open NathanBaulch opened 6 years ago
@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 https://github.com/doctrine/doctrine2/tree/388afb46d0cb3ed0c51332e8df0de9e942c2690b/tests/Doctrine/Tests/ORM/Functional/Ticket
Anything new on this issue? @lcobucci
@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.
@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
I have a
many-to-one
join between two string fields with the MySQL collation set toASCII
. Unfortunately the join column generated bySchemaTool
doesn't inherit this collation because the incorrect metadata keyoptions
is 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.