-
Notifications
You must be signed in to change notification settings - Fork 45
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 add properties to relationships? #38
Comments
Since this was also posted on StackOverflow. I will leave the issue open as it relates to a feature request. |
yes thank you for answering the question on stack overflow by the way :) I hope this feature gets implemented as that would really assist with adding properties to relationships in real time. |
Oh and this is an awesome bundle . Thanks for your hard work. |
According to the documentation we should be able to create Relations using the api |
Yes, relations are being created through that API. The issue is mostly about creating custom types of relationships, which the OGM has no mapping for at this time. |
I am just beginning to learn neo4j, so I don't know much about custom relationships sorry, but without going into these custom relationships, is it possible to just pass an extra argument which will be used as properties for the relationship? I am trying to figure out a way to implement this. |
The link to the stackoverflow question above is still your best bet. |
okay thanks for the answer, I'll try to look more into the code to understand how it works. |
Hello,
while we are able to create new nodes etc., we are still struggling to find out how properties can be added to existing relationships. For instance we are declaring the following in an Entity format:
/**
* @ogm\ManyToMany(relation="GOES_TO_MARKET")
*/
protected $shoppers;
How do we make it so that we can add additional properties to GOES_TO_MARKET using doctrine format?
Thanks
The text was updated successfully, but these errors were encountered: