[DC-436] Change in 1.2 to Doctrine_Event::skipOperation() functionality Created: 18/Jan/10 Updated: 10/Feb/10
|Reporter:||Cameron Ross||Assignee:||Jonathan H. Wage|
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?