mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-28 21:39:47 +08:00
properly quote table names for join().
This commit is contained in:
@@ -409,6 +409,11 @@ class ActiveRecordTest extends DatabaseTestCase
|
||||
'orders' => function ($q) { $q->orderBy([]); }
|
||||
])->one();
|
||||
$this->assertEquals(1, $customer->id);
|
||||
$order = Order::find()->joinWith([
|
||||
'items' => function ($q) {
|
||||
$q->from(['items' => 'tbl_item']);
|
||||
},
|
||||
])->one();
|
||||
}
|
||||
|
||||
public function testJoinWithAndScope()
|
||||
|
||||
Reference in New Issue
Block a user