Skip to content

Commit

Permalink
Wrong association parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bar committed Mar 6, 2014
1 parent ef05a49 commit cfd9764
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -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']
]);
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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']
]);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cfd9764

Please sign in to comment.