Skip to content

spl_object_hash collisions #642

Closed
Closed
@tecbot

Description

@tecbot

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

In 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.

IMHO 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions