Skip to content

Commit

Permalink
Merge pull request cakephp#5004 from h-moriya/patch-1
Browse files Browse the repository at this point in the history
deprecated method
  • Loading branch information
markstory authored Jun 1, 2017
2 parents fb41896 + 3fb4754 commit 997cd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/orm/saving-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ to process all the entities as a single transaction you can use
``transactional()``::

// In a controller.
$articles->connection()->transactional(function () use ($articles, $entities) {
$articles->getConnection()->transactional(function () use ($articles, $entities) {
foreach ($entities as $entity) {
$articles->save($entity, ['atomic' => false]);
}
Expand Down

0 comments on commit 997cd68

Please sign in to comment.