{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/642","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/642/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/642/comments","events_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/642/events","html_url":"https://github.com/doctrine/mongodb-odm/issues/642","id":17091906,"number":642,"title":"spl_object_hash collisions","user":{"login":"tecbot","id":194458,"avatar_url":"https://avatars.githubusercontent.com/u/194458?v=3","gravatar_id":"","url":"https://api.github.com/users/tecbot","html_url":"https://github.com/tecbot","followers_url":"https://api.github.com/users/tecbot/followers","following_url":"https://api.github.com/users/tecbot/following{/other_user}","gists_url":"https://api.github.com/users/tecbot/gists{/gist_id}","starred_url":"https://api.github.com/users/tecbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecbot/subscriptions","organizations_url":"https://api.github.com/users/tecbot/orgs","repos_url":"https://api.github.com/users/tecbot/repos","events_url":"https://api.github.com/users/tecbot/events{/privacy}","received_events_url":"https://api.github.com/users/tecbot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-07-23T09:37:36Z","updated_at":"2015-08-19T22:49:32Z","closed_at":"2015-08-19T22:49:32Z","body":"Hi, today we run in an crazy issue, We found that is releated to an issue which was already reported at doctrine ORM: http://www.doctrine-project.org/jira/browse/DDC-1896\r\n\r\nIn our case, we run a Behat test of one of our features and all the time PHP returns a hash for a new document which was already used of an embedded document previously. So doctrine thinks that the document is already managed and don't insert it into our database. Only a clear between this operations helps us to prevent this issue.\r\n\r\nIMHO we should make the document state behaviour a little bit more robust and shouldn't check only the spl object hash of a document. By the way the documents are not of the same type."},"comment":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/comments/132815742","html_url":"https://github.com/doctrine/mongodb-odm/issues/642#issuecomment-132815742","issue_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/642","id":132815742,"user":{"login":"malarzm","id":4947711,"avatar_url":"https://avatars.githubusercontent.com/u/4947711?v=3","gravatar_id":"","url":"https://api.github.com/users/malarzm","html_url":"https://github.com/malarzm","followers_url":"https://api.github.com/users/malarzm/followers","following_url":"https://api.github.com/users/malarzm/following{/other_user}","gists_url":"https://api.github.com/users/malarzm/gists{/gist_id}","starred_url":"https://api.github.com/users/malarzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malarzm/subscriptions","organizations_url":"https://api.github.com/users/malarzm/orgs","repos_url":"https://api.github.com/users/malarzm/repos","events_url":"https://api.github.com/users/malarzm/events{/privacy}","received_events_url":"https://api.github.com/users/malarzm/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T22:49:32Z","updated_at":"2015-08-19T22:49:32Z","body":"This is fixed in 1.0.0 by #782 "}}