Error 500 Internal Server Error

GET https://mail.status-global.fr/app/mailbox/2/sources/4

Exceptions

Error: Cannot declare class App\Entity\MailboxSource, because the name is already in use

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#1212
  -error: array:4 [
    "type" => 1
    "message" => "Cannot declare class App\Entity\MailboxSource, because the name is already in use"
    "file" => "/var/www/mail_copy/src/Entity/MailboxSource.php"
    "line" => 10
  ]
}
  1. use Doctrine\ORM\Mapping as ORM;
  2. #[ORM\Entity]
  3. #[ORM\Table(name: 'mailbox_sources')]
  4. #[ORM\Index(columns: ['status'], name: 'idx_mbs_status')]
  5. class MailboxSource
  6. {
  7. public const STATUS_DRAFT = 'draft';
  8. public const STATUS_TESTING = 'testing';
  9. public const STATUS_OK = 'ok';
  10. public const STATUS_FAIL = 'fail';

Logs

Level Channel Message
INFO 11:25:02 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "c3461f"
    },
    "request_uri": "https://mail.status-global.fr/_profiler/c3461f",
    "method": "GET"
}

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Error: Cannot declare class App\Entity\MailboxSource, because the name is already in use

  at src/Entity/MailboxSource.php:10