Closed aibragimov4xxi closed 3 years ago
@aibragimov4xxi Did you find any solution?
Same problem here (v1.0.9). But the problem not related to doctrine migrations. I think related to Symfony service container and the simplethings.entityaudit.audited_entities
parameter bundle's uses.
I found where simplethings.entityaudit.audited_entities
parameter is modified.
See: https://github.com/sonata-project/SonataDoctrineORMAdminBundle/blob/3.x/src/DependencyInjection/Compiler/AddAuditEntityCompilerPass.php#L52
SonataDoctrineORMAdminBundle
modifies it. You can disable this behavior with that bundle's configuration:
sonata_doctrine_orm_admin:
audit:
force: false
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I annotated my entity as Auditable, then I tried to use
php bin/console doctrine:migrations:diff
command. But in new migration there was manyaudit
tables for another entities (which were not auditable) but no table for my auditable entity.How can I get correct migration from
Auditable
annotation?