Open apuckey opened 4 months ago
Is this issue still open or need to review further?
Yes this is still happening, Unless someone has committed something recently to rectify it and not linked this issue.
someone has committed something recently to rectify it and not linked this issue.
Hi @apuckey , can you share commit link? we want to try to fix this issue :)
Hi,
I think you mis-read what i wrote. I was saying unless someone has already committed a fix then its still broken. I'll do some debugging later to try narrow down where the issue is.
Your Question
Unable to set custom many2many table, always gets converted to snake case
The document you expected this should be explained
Currently im migratin a java application to golang and the existing join tables are specifically named with Pascal Case ie: ModelOne and ModelTwo with a join table of ModelOneJoinTwo
I have a field in ModelOne as follows:
however it always changes the name to snakecase: model_one_join_to_two
I have tried a custom NamingStrategy but it yields the same result
I have tried with a custom join table
and used like so:
when i debug it gets into TableName and returns the correct string but later still gets changes to snake case.
Expected answer
TableName() on the join table to translate to the database calls