-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error when getting relationships #65
Comments
Have you explicitly defined both relationships in |
yes I have under categories: under pages: relations: I have a discovered when i delete relation under categories and add it there again, then it works... |
the following table structure
gives me this response in API
|
Hi, When attempting to get related content, it calls the internal Bolt method getRelation() and only attempts to checks the @rossriley - Are the Bolt internals functioning correctly, or is there a problem with the my code? |
/{ct}/{id}/{relatedtype} works only one way.
Example I have ct pages and ct categories
i choose relationship when creating new page.
it works when i make request /pages/1/categories
but when i try to use it the other way:
categories/1pages/
i get the error:
Uncaught Exception: StorageException .
StorageException in Relations.php line 205:
Unable to load collection values. Ensure that EntityManager is set on Bolt\Storage\Collection\Relations
The text was updated successfully, but these errors were encountered: