feat: additional 'deleted' status for assignments
This commit is contained in:
@@ -26,6 +26,8 @@ class DeleteController extends AbstractController
|
||||
{
|
||||
if (true === $request->isMethod('POST')) {
|
||||
$assignment->setDeleted();
|
||||
$assignment->setStatus(Assignment::STATUS_DELETED);
|
||||
|
||||
$this->entityManager->flush();
|
||||
|
||||
$this->logger->info('Delete assignment', [
|
||||
|
||||
@@ -28,6 +28,7 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
public const STATUS_PARTLY_STAFFED = 'partly_staffed';
|
||||
public const STATUS_STAFFING = 'staffing';
|
||||
public const STATUS_UNSTAFFED = 'unstaffed';
|
||||
public const STATUS_DELETED = 'deleted';
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
|
||||
Reference in New Issue
Block a user