You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/EntityPreloadBlogOneHasManyAbstractTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ public function testOneHasManyAbstractUnoptimized(): void
20
20
21
21
self::assertAggregatedQueries([
22
22
['count' => 1, 'query' => 'SELECT * FROM article t0'],
23
-
['count' => 5, 'query' => 'SELECT * FROM comment t0 WHERE t0.article_id = ?'],
23
+
['count' => 5, 'query' => 'SELECT * FROM comment t0 WHERE t0.article_id = ? ORDER BY t0.id DESC'],
24
24
['count' => 25, 'query' => 'SELECT * FROM contributor t0 WHERE t0.id = ? AND t0.dtype IN (?)'],
25
25
]);
26
26
}
@@ -40,7 +40,7 @@ public function testOneHasManyAbstractWithFetchJoin(): void
40
40
$this->readComments($articles);
41
41
42
42
self::assertAggregatedQueries([
43
-
['count' => 1, 'query' => 'SELECT * FROM article a0_ LEFT JOIN comment c1_ ON a0_.id = c1_.article_id LEFT JOIN contributor c2_ ON c1_.author_id = c2_.id AND c2_.dtype IN (?)'],
43
+
['count' => 1, 'query' => 'SELECT * FROM article a0_ LEFT JOIN comment c1_ ON a0_.id = c1_.article_id LEFT JOIN contributor c2_ ON c1_.author_id = c2_.id AND c2_.dtype IN (?) ORDER BY c1_.id DESC'],
44
44
]);
45
45
}
46
46
@@ -60,7 +60,7 @@ public function testOneHasManyAbstractWithEagerFetchMode(): void
60
60
61
61
self::assertAggregatedQueries([
62
62
['count' => 1, 'query' => 'SELECT * FROM article a0_'],
63
-
['count' => 1, 'query' => 'SELECT * FROM comment t0 WHERE t0.article_id IN (?, ?, ?, ?, ?)'],
63
+
['count' => 1, 'query' => 'SELECT * FROM comment t0 WHERE t0.article_id IN (?, ?, ?, ?, ?) ORDER BY t0.id DESC'],
64
64
['count' => 25, 'query' => 'SELECT * FROM contributor t0 WHERE t0.id = ? AND t0.dtype IN (?)'],
65
65
]);
66
66
}
@@ -76,7 +76,7 @@ public function testOneHasManyAbstractWithPreload(): void
76
76
77
77
self::assertAggregatedQueries([
78
78
['count' => 1, 'query' => 'SELECT * FROM article t0'],
79
-
['count' => 1, 'query' => 'SELECT * FROM comment c0_ LEFT JOIN contributor c1_ ON c0_.author_id = c1_.id AND c1_.dtype IN (?) WHERE c0_.article_id IN (?, ?, ?, ?, ?)'],
79
+
['count' => 1, 'query' => 'SELECT * FROM comment c0_ LEFT JOIN contributor c1_ ON c0_.author_id = c1_.id AND c1_.dtype IN (?) WHERE c0_.article_id IN (?, ?, ?, ?, ?) ORDER BY c0_.id DESC'],
0 commit comments