mapper interface change
This commit is contained in:
@@ -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).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user