Error when 'refresh_tokens' table is not in 'public' schema
alejgarciarodriguez opened this issue · 0 comments
alejgarciarodriguez commented
My class:
use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRefreshToken;
/**
* @ORM\Entity
* @ORM\Table("refresh_tokens", schema="auth")
*/
final class RefreshToken extends BaseRefreshToken
{
}
Outputs:
An exception occurred while executing a query: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \"refresh_tokens\" does not exist\nLINE 1: ...ername_2, t0.valid AS valid_3, t0.id AS id_4 FROM refresh_to...\n
Everything works If I let the refresh token mapping in the default schema (public) but, It is possible to change that?
What I'm using:
- PHP 8.1
- Symfony 6.0
- doctrine bundle 2.6.3
- this bundle, 1.1.1
- PostgreSQL as a database, 14.2
Any help or suggestion is welcome :)