Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2332

[UnitOfWork::doPersist()] The spl_objact_hash() generate not unique hash!

    Details

    • Type: Bug Bug
    • Status: Awaiting Feedback
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Symfony 2.1.8, php 5.4.7 and php 5.4.12, Windows 7

      Description

      I created fixtures and some data was inserted many times without calling the Task entity PrePersist event listener.

      I printed the used and generated hash and I saw a Proxies_CG_\Asitly\ProjectManagementBundle\Entity\User hash equal a Task entity hash!

      1. hashlogs.txt
        324 kB
        Krisztián Ferenczi

        Activity

        Krisztián Ferenczi created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        Security All [ 10000 ]
        Krisztián Ferenczi made changes -
        Environment Symfony 2.1.8, php 5.4.7 Symfony 2.1.8, php 5.4.7 and php 5.4.12, Windows 7
        Krisztián Ferenczi made changes -
        Comment [ Oh, sorry, the important files:
        - src\...\EventListener\UuidListener.php
        - UnitOfWork.php
        - src\...\DataFixtures\ORM\LoadTaskData.php ]
        Krisztián Ferenczi made changes -
        Attachment hashlogs.txt [ 11510 ]
        Benjamin Eberlei made changes -
        Priority Major [ 3 ] Critical [ 2 ]
        Mauricio Leonardo Rivera Torres made changes -
        Status Open [ 1 ] Awaiting Feedback [ 10000 ]
        Marco Pivetta made changes -
        Priority Critical [ 2 ] Major [ 3 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Krisztián Ferenczi
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: