Skip to content

Loading…

DDC-2006: one2many to self inverts table aliasses and creates wrong db query #2684

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user ksafke:

See attachment for description.

@doctrinebot

Comment created by @FabioBatSilva:

Hi Xavier,

Could you past your entities and mappings please ?

Thanks

@doctrinebot

Comment created by @beberlei:

What version of Doctrine are you using? This sounds like a bug that was fixed some time ago

@doctrinebot

Comment created by @beberlei:

The query is correct, "c.parentCategory c2" generates the right query as per your screenshot. Its just not the order of the queries that you want, Native SQL wil help you here.

@doctrinebot

Issue was closed with resolution "Invalid"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.