Commit 9bd89ef7 by Alexander Makarov

Merge pull request #1419 from Bethrezen/patch-2

Fixed parent function call in afterSave code example
parents 164ddf98 ebd68505
...@@ -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