-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Selecting nodes based on association doesn't work #682
Comments
it looks like we added some sanity check in the query builder that is not really right. semantically that code looks wrong, it should be 'content' => $content and the query builder should extract the uuid for $content. but i guess that does not work either. functional tests for the query builder look rather limited, i think we have this situation not covered (we should at least have one that expects this exception) @dantleech do you remember anything about this? did we just stop at that point, or is there a reason why this would not work? |
oh, one thing: who is the owning side? i think searching by referrer would be difficult. searching for a field referencing something else should be possible. |
As far as I know, if the User is the owner (i.e. it has a PHPCR property called |
The |
symfony-cmf/menu-bundle#241 looks right but seems not to work. wouter, can you maybe try to write a failing functional test here in phpcr-odm for this that shows the problem? |
According to the documentation this code should work to select a node based on an association:
However, when using this code to get a
MenuNode
documentation with a specific content object, I get an error:The code
The error
The docs seem to be incorrect.
More importantly, I can't find a way to select the node. The QueryBuilder can't help with this either.
The text was updated successfully, but these errors were encountered: