Permalink
Browse files

Wrong association parameter.

  • Loading branch information...
1 parent ef05a49 commit cfd9764e13ebc9962a74f68ab6288be7df78f903 @bar bar committed Mar 6, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/TestCase/ORM/QueryTest.php
@@ -173,7 +173,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
$table = TableRegistry::get('authors');
TableRegistry::get('articles');
$table->hasMany('articles', [
- 'property' => 'articles',
+ 'propertyName' => 'articles',
'strategy' => $strategy,
'sort' => ['articles.id' => 'asc']
]);
@@ -247,7 +247,7 @@ public function testHasManyEagerLoadingNoHydration($strategy) {
public function testHasManyEagerLoadingFieldsAndOrderNoHydration($strategy) {
$table = TableRegistry::get('authors');
TableRegistry::get('articles');
- $table->hasMany('articles', ['property' => 'articles'] + compact('strategy'));
+ $table->hasMany('articles', ['propertyName' => 'articles'] + compact('strategy'));
$query = new Query($this->connection, $table);
$results = $query->select()
@@ -297,7 +297,7 @@ public function testHasManyEagerLoadingDeep($strategy) {
$table = TableRegistry::get('authors');
$article = TableRegistry::get('articles');
$table->hasMany('articles', [
- 'property' => 'articles',
+ 'propertyName' => 'articles',
'strategy' => $strategy,
'sort' => ['articles.id' => 'asc']
]);
@@ -1013,7 +1013,7 @@ public function testHydrateWithHasMany() {
$table = TableRegistry::get('authors');
TableRegistry::get('articles');
$table->hasMany('articles', [
- 'property' => 'articles',
+ 'propertyName' => 'articles',
'sort' => ['articles.id' => 'asc']
]);
$query = new Query($this->connection, $table);
@@ -1117,7 +1117,7 @@ public function testHydrateDeep() {
$table = TableRegistry::get('authors');
$article = TableRegistry::get('articles');
$table->hasMany('articles', [
- 'property' => 'articles',
+ 'propertyName' => 'articles',
'sort' => ['articles.id' => 'asc']
]);
$article->belongsTo('authors');
@@ -1178,7 +1178,7 @@ public function testHydrateWithHasManyCustomEntity() {
'entityClass' => '\\' . $articleEntity
]);
$table->hasMany('articles', [
- 'property' => 'articles',
+ 'propertyName' => 'articles',
'sort' => ['articles.id' => 'asc']
]);
$query = new Query($this->connection, $table);

0 comments on commit cfd9764

Please sign in to comment.