Commit 581aad8e by Qiang Xue

Fixed test break.

parent 4889ff9c
...@@ -435,7 +435,11 @@ class ActiveRecordTest extends DatabaseTestCase ...@@ -435,7 +435,11 @@ class ActiveRecordTest extends DatabaseTestCase
public function testJoinWithVia() public function testJoinWithVia()
{ {
Order::getDb()->getQueryBuilder()->separator = "\n"; Order::getDb()->getQueryBuilder()->separator = "\n";
Order::find()->joinWith('itemsInOrder1')->joinWith('items')->all(); Order::find()->joinWith('itemsInOrder1')->joinWith([
'items' => function ($q) {
$q->orderBy('item.id');
},
])->all();
} }
public function testInverseOf() public function testInverseOf()
......
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