diff --git a/docs/guide/db-active-record.md b/docs/guide/db-active-record.md index 3977e55051..b3a7f2a374 100644 --- a/docs/guide/db-active-record.md +++ b/docs/guide/db-active-record.md @@ -1221,7 +1221,7 @@ The opposite operation to [[yii\db\ActiveRecord::link()|link()]] is [[yii\db\Act which breaks an existing relationship between two Active Record instances. For example, ```php -$customer = Customer::find()->with('orders')->all(); +$customer = Customer::find()->with('orders')->one(); $customer->unlink('orders', $customer->orders[0]); ```