Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManyManyDataObjectManager Join ambiguous error #37

Open
PatrickElsing opened this issue Jan 23, 2012 · 0 comments
Open

ManyManyDataObjectManager Join ambiguous error #37

PatrickElsing opened this issue Jan 23, 2012 · 0 comments

Comments

@PatrickElsing
Copy link
Contributor

When use the ManyManyDataObjectManager and add a join clause it can occur an ambigous mysql error.
To prevent this error, change Line 63 in code/ManyManyDataObjectManager.php

From:
$this->sourceJoin .= " LEFT JOIN "$manyManyTable" ON ("$source"."ID" = "{$sourceField}ID" AND "$manyManyTable"."{$this->manyManyParentClass}ID" = '$parentID')";

To:
$this->sourceJoin .= " LEFT JOIN "$manyManyTable" ON ("$source"."ID" = "$manyManyTable"."{$sourceField}ID" AND "$manyManyTable"."{$this->manyManyParentClass}ID" = '$parentID')";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant