-
Notifications
You must be signed in to change notification settings - Fork 74
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
issue when using Taxonomies, need a error suggestion/ add to docs #153
Comments
Hi, thanks for submitting this Could you please clarify the error you're getting. It seems as though the SQL you've supplied above is missing the error that MySQL is throwing e.g. "Missing column xyz" Also, if you had any ideas around a proposed solution, that would also be helpful |
Note quite sure why this closed |
I only got notified today about this missed the comment for 3 years, looks like @wilr closed this since they updated the docs which would prevent the error by using |
@emteknetnz Closed because its fixed in my commit |
This PR hasn't been merged yet |
Linked PR has been merged |
When using a simple $many_many to TaxonomyTerm I get the error
[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: SELECT AS "Title", "TaxonomyTerm"."Sort" AS "_SortColumn0" FROM "TaxonomyTerm" INNER JOIN "ProductPage_Tags" ON "ProductPage_Tags"."TaxonomyTermID" = "TaxonomyTerm"."ID" WHERE ("ProductPage_Tags"."ProductPageID" = ?) ORDER BY "_SortColumn0" ASC
The problem isn't immediately obvious as the TagField is looking for TaxonomyTerm.Title which doesn't exist, I had to hunt through the code to find the constructor had an extra param for title field
PRs
The text was updated successfully, but these errors were encountered: