Skip to content

Commit

Permalink
deleteAll, getMap in entity service
Browse files Browse the repository at this point in the history
  • Loading branch information
mvkasatkin committed Nov 7, 2017
1 parent 4f60d61 commit 4d6323b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/entity/AbstractEntityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,26 @@ public function delete($id)
{
return $this->repository->delete($id);
}

/**
* @param Condition|null $condition
*
* @return mixed
*/
public function deleteAll(Condition $condition = null)
{
return $this->repository->deleteAll($condition);
}

/**
* @param string $field
* @param string $key
* @param Condition|null $condition
*
* @return array
*/
public function getMap(string $field, string $key = 'id', Condition $condition = null): array
{
return $this->repository->getMap($field, $key, $condition);
}
}

0 comments on commit 4d6323b

Please sign in to comment.