[PHPCR-87] the document manager did not return a result for findBy(array('id' => 'some/id')) but does for find('some/id') Created: 31/Jan/13 Updated: 19/Apr/13 Resolved: 19/Apr/13 |
|
| Status: | Closed |
| Project: | Doctrine PHPCR |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Sint | Assignee: | Lukas Kahwe |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | None | ||
| Comments |
| Comment by David Buchmann [ 18/Feb/13 ] |
|
the id is kind of a meta information of the document, not a property. so i am unsure if this can work, as the findBy is querying on the phpcr fields. we can not search on the odm mapped fields, as we do not know which document to search, and different documents could even map differently. so i am not sure if we can solve this issue at all, except improve the documentation of what findBy is actually using. or am i missing something, lukas? |
| Comment by David Buchmann [ 19/Apr/13 ] |
|
findBy filters on properties. the id is the path of the node, not a property. this is thus not a bug. i converted a lot of doc from the orm to have the right place where we should explain this, adding a warning about this case: https://github.com/doctrine/phpcr-odm-documentation/pull/24 |