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
How to query doctrine odm class' multivalue field? #200
Comments
|
This is exactly what i do. |
Can you check which version of jackalope doctrine-dbal you are using?
The following JCR-SQL2 query works for me locally:
|
I'm using jackalope 1.0.1 and jackalope-doctrine-dbal 1.0.0 |
I think your issue is probably fixed by this PR: jackalope/jackalope-doctrine-dbal#243 I think this is only available in the recent |
Ok, juste updated to jackalope 1.2 and problem still there. Here the querybuilder code :
And the MySQL query generated :
|
ping @dantleech |
@lowki could you try the query in the PHPCR shell, this works for me using jackalope:
|
ping @lowki |
Thank you @dantleech, I didn't know there is such a tool, I will give it a try. |
fyi, it would probably be best to install it as a dependency: if you are using Symfony then you can probably start it with Otherwise you can start it manually, e.g.
|
fyi, it would probably be best to install it as a dependency, as this means that you will be using the same lobrary versions as your application: if you are using Symfony then you can probably start it with Otherwise you can start it manually, e.g.
|
Reopened as I don't think this has been resolved. |
@dantleech can you update the description or open a new issue that explains what needs to be fixed? i understood that a newer version of jackalope solved the problem |
Well, I can't reproduce it. @lowki did you have any luck with installing PHPCR shell as a dep? Did my query work for you? Does your query work as you expected? |
ping @lowki |
My document class, contains multivalue fields, how can I query them with the query builder? I've tried like() and fullTextSearch() methods, but both failed.
I found that the generated query specifies the first index for the value array.
The text was updated successfully, but these errors were encountered: