mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Cannot insert data into table when schema is diferent of standard, but the entity has the schema annotation in @ORM\Table #5593
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 @ghost on GitHub (Jun 28, 2017).
Originally assigned to: @Ocramius on GitHub.
The problem could be simulated when command doctrine:fixture:load is executed, only the entity with standard schema has its data inserted.
It is possible correct the problem, modifying the following code in the file lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php in line 3180.
@Ocramius commented on GitHub (Jul 12, 2017):
Fixtures use the ORM to perform inserts, and that means that if no insert was performed, the entity didn't land in the
UnitOfWorkat all.It is very likely that you are simply looking at the wrong schema when verifying inserted data.
Also, consider using an
SQLLoggerto check your issue in more detailClosing here - please report this again once/if you have a reproducible test case.