Skip to content

Commit

Permalink
Add remove method to CRUD manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Dang committed Apr 28, 2020
1 parent ee891ab commit ec8b527
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 ec8b527

Please sign in to comment.