mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Entity schema name is null on specific env #7337
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @romain-neil on GitHub (Mar 4, 2024).
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,