Skip to content

Commit cfd9764

Browse files
committed
Wrong association parameter.
1 parent ef05a49 commit cfd9764

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/TestCase/ORM/QueryTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
173173
$table = TableRegistry::get('authors');
174174
TableRegistry::get('articles');
175175
$table->hasMany('articles', [
176-
'property' => 'articles',
176+
'propertyName' => 'articles',
177177
'strategy' => $strategy,
178178
'sort' => ['articles.id' => 'asc']
179179
]);
@@ -247,7 +247,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
247247
public function testHasManyEagerLoadingFieldsAndOrderNoHydration($strategy) {
248248
$table = TableRegistry::get('authors');
249249
TableRegistry::get('articles');
250-
$table->hasMany('articles', ['property' => 'articles'] + compact('strategy'));
250+
$table->hasMany('articles', ['propertyName' => 'articles'] + compact('strategy'));
251251

252252
$query = new Query($this->connection, $table);
253253
$results = $query->select()
@@ -297,7 +297,7 @@ public function testHasManyEagerLoadingDeep($strategy) {
297297
$table = TableRegistry::get('authors');
298298
$article = TableRegistry::get('articles');
299299
$table->hasMany('articles', [
300-
'property' => 'articles',
300+
'propertyName' => 'articles',
301301
'strategy' => $strategy,
302302
'sort' => ['articles.id' => 'asc']
303303
]);
@@ -1013,7 +1013,7 @@ public function testHydrateWithHasMany() {
10131013
$table = TableRegistry::get('authors');
10141014
TableRegistry::get('articles');
10151015
$table->hasMany('articles', [
1016-
'property' => 'articles',
1016+
'propertyName' => 'articles',
10171017
'sort' => ['articles.id' => 'asc']
10181018
]);
10191019
$query = new Query($this->connection, $table);
@@ -1117,7 +1117,7 @@ public function testHydrateDeep() {
11171117
$table = TableRegistry::get('authors');
11181118
$article = TableRegistry::get('articles');
11191119
$table->hasMany('articles', [
1120-
'property' => 'articles',
1120+
'propertyName' => 'articles',
11211121
'sort' => ['articles.id' => 'asc']
11221122
]);
11231123
$article->belongsTo('authors');
@@ -1178,7 +1178,7 @@ public function testHydrateWithHasManyCustomEntity() {
11781178
'entityClass' => '\\' . $articleEntity
11791179
]);
11801180
$table->hasMany('articles', [
1181-
'property' => 'articles',
1181+
'propertyName' => 'articles',
11821182
'sort' => ['articles.id' => 'asc']
11831183
]);
11841184
$query = new Query($this->connection, $table);

0 commit comments

Comments
 (0)