From 92ea15247e59aebb74c7a020e47defcb47ae5df3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 16 May 2014 13:27:06 +0200 Subject: add delete method for imapper since service depends on it --- service/service.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'service') diff --git a/service/service.php b/service/service.php index 9609dd61e..cecd33687 100644 --- a/service/service.php +++ b/service/service.php @@ -32,8 +32,8 @@ abstract class Service { * Delete an entity * @param int $id the id of the entity * @param string $userId the name of the user for security reasons - * @throws DoesNotExistException if the entity does not exist - * @throws MultipleObjectsReturnedException if more than one entity exists + * @throws ServiceNotFoundException if the entity does not exist, or there + * are more than one of it */ public function delete($id, $userId){ $entity = $this->find($id, $userId); @@ -45,8 +45,8 @@ abstract class Service { * Finds an entity by id * @param int $id the id of the entity * @param string $userId the name of the user for security reasons - * @throws DoesNotExistException if the entity does not exist - * @throws MultipleObjectsReturnedException if more than one entity exists + * @throws ServiceNotFoundException if the entity does not exist, or there + * are more than one of it * @return Entity the entity */ public function find($id, $userId){ -- cgit v1.2.3