Replace Newsletter delete,trash,replace by new bulkMethods

[MAILPOET-2898][MAILPOET-2758]
This commit is contained in:
Rostislav Wolny
2020-06-10 12:54:59 +02:00
committed by Veljko V
parent 3a462a7a6c
commit a8d11bf045
7 changed files with 39 additions and 27 deletions

View File

@ -87,6 +87,13 @@ abstract class Repository {
$this->entityManager->remove($entity);
}
/**
* @param T $entity
*/
public function refresh($entity) {
$this->entityManager->refresh($entity);
}
public function flush() {
$this->entityManager->flush();
}