From ebd68505997c75bfdfac99f390d41fb555e1aef0 Mon Sep 17 00:00:00 2001 From: Alexander Kozhevnikov Date: Wed, 4 Dec 2013 15:50:43 +0300 Subject: [PATCH] Fixed parent function call in afterSave code example --- docs/guide/active-record.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/active-record.md b/docs/guide/active-record.md index aa47751..dc304ed 100644 --- a/docs/guide/active-record.md +++ b/docs/guide/active-record.md @@ -607,7 +607,7 @@ class Product extends \yii\db\ActiveRecord public function afterSave($insert) { - parent::afterSave(); + parent::afterSave($insert); if ($this->getScenario() === 'userCreates') { // FIXME: TODO: WIP, TBD }