From bea8bd40573cc0bb840cd616d4b50d36ee90cfef Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 23 Jul 2020 15:02:15 +0300 Subject: [PATCH] mapper interface change --- application/Espo/ORM/DB/Mapper.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/Espo/ORM/DB/Mapper.php b/application/Espo/ORM/DB/Mapper.php index e75d35d34a..d2ca105df5 100644 --- a/application/Espo/ORM/DB/Mapper.php +++ b/application/Espo/ORM/DB/Mapper.php @@ -127,6 +127,13 @@ interface Mapper */ public function insert(Entity $entity); + /** + * Insert an entity collaction. + * + * @return TRUE if success. + */ + public function massInsert(Collection $collection) : bool; + /** * Update an entity in DB. * @@ -134,7 +141,6 @@ interface Mapper */ public function update(Entity $entity) : ?string; - /** * Delete an entity (mark as deleted). *