Browse Source

Fixed parent function call in afterSave code example

tags/2.0.0-beta
Alexander Kozhevnikov 11 years ago
parent
commit
ebd6850599
  1. 2
      docs/guide/active-record.md

2
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
}

Loading…
Cancel
Save