Commit ebd68505 by Alexander Kozhevnikov

Fixed parent function call in afterSave code example

parent 164ddf98
...@@ -607,7 +607,7 @@ class Product extends \yii\db\ActiveRecord ...@@ -607,7 +607,7 @@ class Product extends \yii\db\ActiveRecord
public function afterSave($insert) public function afterSave($insert)
{ {
parent::afterSave(); parent::afterSave($insert);
if ($this->getScenario() === 'userCreates') { if ($this->getScenario() === 'userCreates') {
// FIXME: TODO: WIP, TBD // FIXME: TODO: WIP, TBD
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment