Overwrite afterSave()
gagiD opened this issue · comments
Hi.
I have afterSave() implemented in ActiveRecord which use TaggableBehavior.
And afterSave() from TaggableBehavior dones't have any effect. When I comment my TaggableBehavior works normal.
Any fix for this?
Any fix for this?
Do you have parent::afterSave($insert, $changedAttributes)
at start of your overriden method?
Thanks for answer 😄
Yes.
public function afterSave($insert)
{
$return = parent::beforeSave($insert);
// ...
return $return;
}
And I added $changedAttributes parameter but no difference.
Oh, this is embarrassing 😬
Sorry for interrupting.