mapper interface change

This commit is contained in:
Yuri Kuznetsov
2020-07-23 15:02:15 +03:00
parent 5d3996ae03
commit bea8bd4057
+7 -1
View File
@@ -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).
*