Browse Source

Wrong association parameter.

Ber Clausen 12 years ago
parent
commit
cfd9764e13
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/TestCase/ORM/QueryTest.php

+ 6 - 6
tests/TestCase/ORM/QueryTest.php

@@ -173,7 +173,7 @@ class QueryTest extends TestCase {
 		$table = TableRegistry::get('authors');
 		TableRegistry::get('articles');
 		$table->hasMany('articles', [
-			'property' => 'articles',
+			'propertyName' => 'articles',
 			'strategy' => $strategy,
 			'sort' => ['articles.id' => 'asc']
 		]);
@@ -247,7 +247,7 @@ class QueryTest extends TestCase {
 	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 @@ class QueryTest extends TestCase {
 		$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 @@ class QueryTest extends TestCase {
 		$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 @@ class QueryTest extends TestCase {
 		$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 @@ class QueryTest extends TestCase {
 			'entityClass' => '\\' . $articleEntity
 		]);
 		$table->hasMany('articles', [
-			'property' => 'articles',
+			'propertyName' => 'articles',
 			'sort' => ['articles.id' => 'asc']
 		]);
 		$query = new Query($this->connection, $table);