Vinelab / NeoEloquent

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

Model labels placeholder incompatibility #133

Closed KinaneD closed 4 years ago

KinaneD commented 8 years ago

When different models share a label the placeholder generated for both models might be identical resulting in a confusion in the cypher query.

Possible solution might be concatenating model's labels to generate the placeholder.

KinaneD commented 8 years ago

In addition to the fact that camel cased palaceholders shuch as fictionBook is used as fictionbook in orderBy. "MATCH (librarian:Librarian), (librarian)-[rel_fictino_fictionBook:FICTION]->(fictionBooks:Book) WHERE librarian.uuid = {librarianuuid} RETURN fictionBooks, rel_fiction_fictionBooks ORDER BY fictionbooks.title ASC"

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.