{"action":"created","issue":{"url":"https://api.github.com/repos/js-data/js-data/issues/279","labels_url":"https://api.github.com/repos/js-data/js-data/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data/issues/279/comments","events_url":"https://api.github.com/repos/js-data/js-data/issues/279/events","html_url":"https://github.com/js-data/js-data/issues/279","id":122116209,"number":279,"title":"Delete object with hasMany does not delete dependend children?","user":{"login":"AntonTrapp","id":168248,"avatar_url":"https://avatars.githubusercontent.com/u/168248?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonTrapp","html_url":"https://github.com/AntonTrapp","followers_url":"https://api.github.com/users/AntonTrapp/followers","following_url":"https://api.github.com/users/AntonTrapp/following{/other_user}","gists_url":"https://api.github.com/users/AntonTrapp/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTrapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTrapp/subscriptions","organizations_url":"https://api.github.com/users/AntonTrapp/orgs","repos_url":"https://api.github.com/users/AntonTrapp/repos","events_url":"https://api.github.com/users/AntonTrapp/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTrapp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-14T19:46:54Z","updated_at":"2015-12-14T20:29:42Z","closed_at":null,"body":"Bug? Or could it be that there is no way to handle that? Or am I just blind and can't find something obvious like the \"dependent: :destroy\" in ActiveRecord? Can't find anything in the relations, destroy, ... docs. Neither do the examples address that topic.\r\n\r\nIf that is not provided I would have to handle all associations manually (then I could stick with $http too, less overhead and I have to do everything manually) or I can try to invalidate every data store after a delete od I could try to parse the relations and delete the children automatically in the afterDestroy callback. I can't be the only js-data user with associations... :D"},"comment":{"url":"https://api.github.com/repos/js-data/js-data/issues/comments/164550183","html_url":"https://github.com/js-data/js-data/issues/279#issuecomment-164550183","issue_url":"https://api.github.com/repos/js-data/js-data/issues/279","id":164550183,"user":{"login":"AntonTrapp","id":168248,"avatar_url":"https://avatars.githubusercontent.com/u/168248?v=3","gravatar_id":"","url":"https://api.github.com/users/AntonTrapp","html_url":"https://github.com/AntonTrapp","followers_url":"https://api.github.com/users/AntonTrapp/followers","following_url":"https://api.github.com/users/AntonTrapp/following{/other_user}","gists_url":"https://api.github.com/users/AntonTrapp/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonTrapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonTrapp/subscriptions","organizations_url":"https://api.github.com/users/AntonTrapp/orgs","repos_url":"https://api.github.com/users/AntonTrapp/repos","events_url":"https://api.github.com/users/AntonTrapp/events{/privacy}","received_events_url":"https://api.github.com/users/AntonTrapp/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T20:29:42Z","updated_at":"2015-12-14T20:29:42Z","body":"Tnx for the fast answer (as always). I think I will try to hack in in something the next days (if I find the time) with parsing the data definition. Maybe I find something simple that I can add to v2 and some people can use it..."}}