Resolution: Can't Fix
Affects Version/s: 1.1.5
Fix Version/s: None
I'm having a bit of trouble getting my record listener methods to fire properly, as described in the issue title. To reproduce:
1. Create a model classes which uses one or more built-in actAs behaviors (timestampable, sluggable, etc.).
2. Create two instances of Doctrine_Overloadable, one to serve as a record listener and one to serve as an event listener:
3. Set up a test script that bootstraps your Doctrine manager and connection; make sure to add the two event listeners to the manager object as follows:
4. Then, once your connection is set up, retrieve an instance of the table for the model, and run something along these lines:
5. When you run this test script, the output will look something like this:
6. Adjust the model such that it no longer includes the behaviors (e.g., comment out the $this->actAs() lines). Now, if you run the script again, you'll get this output instead (assuming there are records in the database):
In a nutshell, it looks as though registered record listener hooks aren't firing if the model has some actAs() behaviors.
Is this by design? If so, is there a way to get those hooks to fire even when the behaviors are registered?