diff --git a/docs/guide/active-record.md b/docs/guide/active-record.md index e0d16c9..90826b0 100644 --- a/docs/guide/active-record.md +++ b/docs/guide/active-record.md @@ -202,7 +202,7 @@ class Customer extends \yii\db\ActiveRecord { public function getOrders() { - return $this->hasMany(Order::className, ['customer_id' => 'id']); + return $this->hasMany(Order::className(), ['customer_id' => 'id']); } }