{"action":"opened","issue":{"url":"https://api.github.com/repos/graphaware/neo4j-php-ogm/issues/104","repository_url":"https://api.github.com/repos/graphaware/neo4j-php-ogm","labels_url":"https://api.github.com/repos/graphaware/neo4j-php-ogm/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/graphaware/neo4j-php-ogm/issues/104/comments","events_url":"https://api.github.com/repos/graphaware/neo4j-php-ogm/issues/104/events","html_url":"https://github.com/graphaware/neo4j-php-ogm/issues/104","id":213174920,"number":104,"title":"Remove simple relationship?","user":{"login":"JoeThielen","id":14891634,"avatar_url":"https://avatars3.githubusercontent.com/u/14891634?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeThielen","html_url":"https://github.com/JoeThielen","followers_url":"https://api.github.com/users/JoeThielen/followers","following_url":"https://api.github.com/users/JoeThielen/following{/other_user}","gists_url":"https://api.github.com/users/JoeThielen/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeThielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeThielen/subscriptions","organizations_url":"https://api.github.com/users/JoeThielen/orgs","repos_url":"https://api.github.com/users/JoeThielen/repos","events_url":"https://api.github.com/users/JoeThielen/events{/privacy}","received_events_url":"https://api.github.com/users/JoeThielen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-09T21:44:20Z","updated_at":"2017-03-09T21:44:20Z","closed_at":null,"body":"I can't figure out how to remove a simple relationship.  I see in the docs how to remove a RelationshipEntity if it's provided for in the model, like it is with rating (Rating has it's own class).  But what about the movie dataset.  How do you do something like remove Tom Hanks from Cast Away if all you have are the Person and Movie classes?  I've looked in the unit tests, and all I can see are the RelationshipEntity removal tests.  \r\n\r\nI've tried to do it manually by using the removeActor and/or removeMovie methods, but when I flush it either doesn't do anything, or I get an error like:\r\n\r\n> Error: Call to undefined method neo4j_ogm_proxy_GraphAware_Neo4j_OGM_Tests_Integration_Models_MoviesDemo_Person::removeMovie()\r\n\r\nI've also tried removeElement on the arrayCollection.  That seems to work for the current in-memory objects, but flushing won't make it persist.  \r\n\r\nCan you provide a unit test in tests/Integration/MovieDatasetTest.php which would demonstrate this?\r\n\r\nThank you so much!"}}
{"actor":{"display_login":"JoeThielen"}}