From 204a629411042402bb83a1ec489edbb07181464b Mon Sep 17 00:00:00 2001 From: Ian Munro Date: Fri, 30 Jun 2017 15:46:35 +0100 Subject: [PATCH] Adding "saveAll" method to allow the saving of a collection. --- src/Repository.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Repository.php b/src/Repository.php index 02e37f4..7a20017 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -20,4 +20,15 @@ public function __construct(MapperInterface $mapper) { $this->mapper = $mapper; } + + + /** + * Saves a collection of objects. + * + * @param Collection $collection + */ + public function saveAll(Collection $collection) + { + $this->saveAll($collection); + } }