DDC-582: './doctrine build-all-reload' on many to many relations in yaml definition depending on table names #713

Closed
opened 2026-01-22 12:47:44 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (May 12, 2010).

Jira issue originally created by user oliver:

If you try to generate your database model out of yml with some relations between the tables, in some cases it fails, if there are relations between tables.

It seems like this depends on table names! When doctrine-cli creates the tables in sql, it uses the table classes in alphabetical order. If you define your cross table names starting with a "z" for example, it works until depending table names are starting with a-y.

Originally created by @doctrinebot on GitHub (May 12, 2010). Jira issue originally created by user oliver: If you try to generate your database model out of yml with some relations between the tables, in some cases it fails, if there are relations between tables. It seems like this depends on table names! When doctrine-cli creates the tables in sql, it uses the table classes in alphabetical order. If you define your cross table names starting with a "z" for example, it works until depending table names are starting with a-y.
admin added the Bug label 2026-01-22 12:47:44 +01:00
admin closed this issue 2026-01-22 12:47:45 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 12, 2010):

Comment created by oliver:

Sorry, it was my fault. I forgot to define local and foreign for relations with onDelete in example. Solved!

@doctrinebot commented on GitHub (May 12, 2010): Comment created by oliver: Sorry, it was my fault. I forgot to define local and foreign for relations with onDelete in example. Solved!
Author
Owner

@doctrinebot commented on GitHub (May 12, 2010):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (May 12, 2010): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 2 attachments from Jira into https://gist.github.com/946bf513de54d48ee41b

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 2 attachments from Jira into https://gist.github.com/946bf513de54d48ee41b - [10602_user2group-error.yml](https://gist.github.com/946bf513de54d48ee41b#file-10602_user2group-error-yml) - [10603_user2group-success.yml](https://gist.github.com/946bf513de54d48ee41b#file-10603_user2group-success-yml)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#713