Neo4j-PHP-OGM
Neo4j-PHP-OGM copied to clipboard
Create Unique
hi is there any way to use create unique in this bundle i mean someting like unique=true in doctrine/orm
This is the same question I have.
It's not supported at this stage. Neo4j added some constructs for this, but it has not been integrated into the OGM. There is still PR #30 for this, which was accidentally closed. However, the submiter did not provide tests. My own tests could not demonstrate the functionality. I never saw the expected behavior, so it was never merged.
If you are interested, you can pick up where it was left off.