Merge pull request #10642 from drodata/master

Fixed a wrong method calling.
This commit is contained in:
Dmitry Naumenko
2016-01-23 09:30:47 +02:00

View File

@@ -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]);
```