Skip to content

Commit

Permalink
Merge pull request #56 from dangson/add-remove-to-crud-manager
Browse files Browse the repository at this point in the history
Add remove method to CRUD manager
  • Loading branch information
inferont authored Apr 30, 2020
2 parents ee891ab + ec8b527 commit a280d6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Services/CRUD/CrudManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@ public function persist(CrudEntityInterface $entity)
$this->getEntityManager($entity)->persist($entity);
}

/**
* Remove
*
* @param CrudEntityInterface $entity
*
* @return void
*/
public function remove(CrudEntityInterface $entity)
{
$this->getEntityManager($entity)->remove($entity);
}

/**
* Creating collection
*
Expand Down

0 comments on commit a280d6f

Please sign in to comment.