Skip to content

Commit

Permalink
Using one instead of many to create record, fixed PHPCS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cjquinn committed Apr 5, 2015
1 parent 944bc96 commit 75b88bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Marshaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ protected function _belongsToMany(Association $assoc, array $data, $options = []
$query->orWhere($keys);
}
} else {
$records = array_merge($records, $this->many([$row], $options));
$records[] = $this->one($row, $options);
}
}

Expand Down

0 comments on commit 75b88bd

Please sign in to comment.