Browse Source

Merge pull request #1040 from lucianobaraglia/master

Docs typo [skip ci]
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
40031b9882
  1. 2
      docs/guide/active-record.md

2
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']);
}
}

Loading…
Cancel
Save