Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-436

Change in 1.2 to Doctrine_Event::skipOperation() functionality


    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.1.6
    • Component/s: Relations
    • Labels:
    • Environment:


      I have been using Doctrine 1.1.6.

      I have two related models, which are always saved together. In my application, save is called on class A and that save cascades to class B. I have a save listener which in some cases can intercept class A's save operation and call Doctrine_Event::skipOperation() to prevent class A from being persistently saved. However, in such cases, class B is still saved - the skipOperation() does not skip the entire operation, just class A's save operation, allowing subsequent operations to occur as normal.

      This is the desired functionality and has been working fine. However, I have just upgraded to 1.2.1. only to find that something has changed, causing the skipOperation() to skip the entire operation, therefore not saving class B when class A's listener interferes.

      I presume this is a bug. If not, what precisely has changed with skipOperation(), and how can I keep the traditional functionality?


        There are no comments yet on this issue.


          • Assignee:
            jwage Jonathan H. Wage
            ondistantshores Cameron Ross
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: