Skip to content

Commit

Permalink
Fixed CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 2, 2014
1 parent d13b8bb commit 241701b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ORM/Marshaller.php
Expand Up @@ -237,7 +237,7 @@ protected function _loadBelongsToMany($assoc, $ids) {
$target = $assoc->target();
$primaryKey = (array)$target->primaryKey();
$multi = count($primaryKey) > 1;
$primaryKey = array_map(function($key) use ($target) {
$primaryKey = array_map(function ($key) use ($target) {
return $target->alias() . '.' . $key;
}, $primaryKey);

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/MarshallerTest.php
Expand Up @@ -874,7 +874,7 @@ public function testMergeFromIdsWithAutoAssociation() {
$entity->accessible('*', true);

// Adding a forced join to have another table with the same column names
$this->articles->Tags->eventManager()->attach(function($e, $query) {
$this->articles->Tags->eventManager()->attach(function ($e, $query) {
$left = new IdentifierExpression('Tags.id');
$right = new IdentifierExpression('a.id');
$query->leftJoin(['a' => 'tags'], $query->newExpr()->eq($left, $right));
Expand Down

0 comments on commit 241701b

Please sign in to comment.