Commit d552bc26 by Qiang Xue

Merge pull request #3099 from thiagotalma/patch-1

Update ActiveRelationTrait.php
parents d79d0127 544243d5
......@@ -86,7 +86,7 @@ trait ActiveRelationTrait
* public function getOrderItems()
* {
* return $this->hasMany(Item::className(), ['id' => 'item_id'])
* ->via('orders', ['order_id' => 'id']);
* ->via('orders');
* }
* ```
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment