@@ -173,7 +173,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
173
173
$ table = TableRegistry::get ('authors ' );
174
174
TableRegistry::get ('articles ' );
175
175
$ table ->hasMany ('articles ' , [
176
- 'property ' => 'articles ' ,
176
+ 'propertyName ' => 'articles ' ,
177
177
'strategy ' => $ strategy ,
178
178
'sort ' => ['articles.id ' => 'asc ' ]
179
179
]);
@@ -247,7 +247,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
247
247
public function testHasManyEagerLoadingFieldsAndOrderNoHydration ($ strategy ) {
248
248
$ table = TableRegistry::get ('authors ' );
249
249
TableRegistry::get ('articles ' );
250
- $ table ->hasMany ('articles ' , ['property ' => 'articles ' ] + compact ('strategy ' ));
250
+ $ table ->hasMany ('articles ' , ['propertyName ' => 'articles ' ] + compact ('strategy ' ));
251
251
252
252
$ query = new Query ($ this ->connection , $ table );
253
253
$ results = $ query ->select ()
@@ -297,7 +297,7 @@ public function testHasManyEagerLoadingDeep($strategy) {
297
297
$ table = TableRegistry::get ('authors ' );
298
298
$ article = TableRegistry::get ('articles ' );
299
299
$ table ->hasMany ('articles ' , [
300
- 'property ' => 'articles ' ,
300
+ 'propertyName ' => 'articles ' ,
301
301
'strategy ' => $ strategy ,
302
302
'sort ' => ['articles.id ' => 'asc ' ]
303
303
]);
@@ -1013,7 +1013,7 @@ public function testHydrateWithHasMany() {
1013
1013
$ table = TableRegistry::get ('authors ' );
1014
1014
TableRegistry::get ('articles ' );
1015
1015
$ table ->hasMany ('articles ' , [
1016
- 'property ' => 'articles ' ,
1016
+ 'propertyName ' => 'articles ' ,
1017
1017
'sort ' => ['articles.id ' => 'asc ' ]
1018
1018
]);
1019
1019
$ query = new Query ($ this ->connection , $ table );
@@ -1117,7 +1117,7 @@ public function testHydrateDeep() {
1117
1117
$ table = TableRegistry::get ('authors ' );
1118
1118
$ article = TableRegistry::get ('articles ' );
1119
1119
$ table ->hasMany ('articles ' , [
1120
- 'property ' => 'articles ' ,
1120
+ 'propertyName ' => 'articles ' ,
1121
1121
'sort ' => ['articles.id ' => 'asc ' ]
1122
1122
]);
1123
1123
$ article ->belongsTo ('authors ' );
@@ -1178,7 +1178,7 @@ public function testHydrateWithHasManyCustomEntity() {
1178
1178
'entityClass ' => '\\' . $ articleEntity
1179
1179
]);
1180
1180
$ table ->hasMany ('articles ' , [
1181
- 'property ' => 'articles ' ,
1181
+ 'propertyName ' => 'articles ' ,
1182
1182
'sort ' => ['articles.id ' => 'asc ' ]
1183
1183
]);
1184
1184
$ query = new Query ($ this ->connection , $ table );
0 commit comments