Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
635 stars 200 forks source link

issue with using multiple whereHas in the same query #134

Closed bobflay closed 4 years ago

bobflay commented 8 years ago

writing this code in the controller: controller

will give generate the following cypher

'MATCH (post:`post`), (post)-[rel_has_keyword:has]->(keyword:`keyword`), (post:`post`), (post)-[rel_has_action:has]->(action:`action`) WHERE keyword.name = {name} and action.name = {name} RETURN post'

cypher

which is incorrect because both relations have the same query parameter variable "name", it should be as the following

'MATCH (post:`post`), (post)-[rel_has_keyword:has]->(keyword:`keyword`), (post:`post`), (post)-[rel_has_action:has]->(action:`action`) WHERE keyword.name = {name0} and action.name = {name1} RETURN post'
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.