SuperAdminTech / api

0 stars 0 forks source link

Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing 'SELECT t0.username AS username_1, t0.email_validated AS em... #49

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: CASTE-STAGE-1S

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.application_id' in 'field list'
  File "/src/Security/Authenticator/ApplicationAuthenticator.php", line 91, in App\Security\Authenticator\ApplicationAuthenticator::getUser
    $users = $this->em->getRepository(User::class)->findBy(['username' => $credentials->username]);
  File "/public/index.php", line 25
    $response = $kernel->handle($request);
...
(18 additional frame(s) were not displayed)

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.application_id' in 'field list'
  File "/src/Security/Authenticator/ApplicationAuthenticator.php", line 91, in App\Security\Authenticator\ApplicationAuthenticator::getUser
    $users = $this->em->getRepository(User::class)->findBy(['username' => $credentials->username]);
  File "/public/index.php", line 25
    $response = $kernel->handle($request);
...
(18 additional frame(s) were not displayed)

Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing 'SELECT t0.username AS username_1, t0.email_validated AS email_validated_2, t0.email_verification_code AS email_verification_code_3, t0.recover_password_requested_at AS recover_password_requested_at_4, t0.recover_password_code AS recover_password_code_5, t0.roles AS roles_6, t0.password AS password_7, t0.enabled AS enabled_8, t0.id AS id_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11, t0.application_id AS application_id_12 FROM user t0 WHERE t0.username = ?' with params ["rafa@recogeme.es"]:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.application_id' in 'field list'
  File "/src/Security/Authenticator/ApplicationAuthenticator.php", line 91, in App\Security\Authenticator\ApplicationAuthenticator::getUser
    $users = $this->em->getRepository(User::class)->findBy(['username' => $credentials->username]);
  File "/public/index.php", line 25
    $response = $kernel->handle($request);
...
(20 additional frame(s) were not displayed)
Nota46 commented 3 years ago

This was before the migration was done, is fixed