Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-444

Deferred explicit policy doesn't update data

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When using the deferred explicit policy the entities no longer get updated and undefined indexes notices get thrown.

      This seems to be caused by a typo in UnitOfWork::scheduleForDirtyCheck():
      The _scheduledForDirtyCheck entries are expected to be an array of entities (see UOW::computeChangeSets() foreach($entitiesToProcess..)).

      Attached patch fixes both issues :]

      1. ddc444.patch
        2 kB
        Hannes Magnusson
      2. UOW.patch
        1 kB
        Hannes Magnusson

        Activity

        Hide
        Hannes Magnusson added a comment -

        Added a testcase

        Show
        Hannes Magnusson added a comment - Added a testcase
        Hide
        Benjamin Eberlei added a comment -

        I think we need a specific testmodel for the non-default change tracking policies also.

        Show
        Benjamin Eberlei added a comment - I think we need a specific testmodel for the non-default change tracking policies also.
        Hide
        Roman S. Borschel added a comment -

        Thanks. I will apply the patches and commit them as soon as I can.

        Show
        Roman S. Borschel added a comment - Thanks. I will apply the patches and commit them as soon as I can.
        Hide
        Roman S. Borschel added a comment -

        Should be fixed now. Thanks for the patches.

        Show
        Roman S. Borschel added a comment - Should be fixed now. Thanks for the patches.

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Hannes Magnusson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: