Entity schema name is null on specific env #11339
Unanswered
romain-neil
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Summary
Hello, in test environment using behat, the entities schema name are null (when specified alongs table name, or with specific schema parameter)
So, the differents logs show errors when :
Current behavior
The entity schema name are null when dumped :
$this->em->getMetadataFactory()->getMetadataFor(MyClass::class)->getSchemaName()
I also had to specify the entity sequence schema name on id field (ORM\SequenceGenerator), otherwise the sequence were not found
Logs :
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "log" does not exist 2024-03-04T10:52:31.740067946Z LINE 1: INSERT INTO log (id, ....
How to reproduce
Create a sample entity using doctrine attributes
Expected behavior
The SQL insert contains the entity schema name.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions