Skip to content

Commit

Permalink
Merge pull request #1040 from lucianobaraglia/master
Browse files Browse the repository at this point in the history
Docs typo [skip ci]
  • Loading branch information
cebe committed Oct 22, 2013
2 parents fb8e818 + dc6f04d commit 40031b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/active-record.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

Expand Down

0 comments on commit 40031b9

Please sign in to comment.