Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
This commit is contained in:
@ -36,6 +36,11 @@ class FormsRepository extends Repository {
|
||||
->getSingleScalarResult();
|
||||
}
|
||||
|
||||
public function delete(FormEntity $form) {
|
||||
$this->remove($form);
|
||||
$this->flush();
|
||||
}
|
||||
|
||||
public function trash(FormEntity $form) {
|
||||
$this->updateDeletedAt($form, Carbon::now());
|
||||
}
|
||||
|
Reference in New Issue
Block a user