As discussed - without resolution - in the general discusion forum I am experiencing trouble with this event.
The problem affects module models that extend from a modified CActiveRecord class (the getDBConnection method is overwritten, nothing else).
The problem after looking stepping through execution with the debugger is that
$model->_e['onafterconstruct']
is not defined
while the model class definitely states:
public function onAfterConstruct($event) {
die('onAfterConstruct');
parent::onAfterConstruct($event);
}
I am not sure if this is a bug or if I am missing something key here. I left the thread in the general discussion forum for five days now and no significant insights have been offered.
I have given up on this and worked around the issue (I wanted to use the event for default initialization of the model) and just use an init call on each `new model’.