Browse Source

Merge pull request #1419 from Bethrezen/patch-2

Fixed parent function call in afterSave code example
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
9bd89ef7db
  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) 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
} }

Loading…
Cancel
Save