Doctrine schema update filter problem #5162

Closed
opened 2026-01-22 15:00:06 +01:00 by admin · 1 comment
Owner

Originally created by @PlamenVasilev on GitHub (Jun 21, 2016).

Originally assigned to: @Ocramius on GitHub.

I have a problem with excluding table from schema with symfony 2.8.5

According to this http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html#manual-tables
I can exclude tables form schema diff and ignore them

When I set this filter to specific table

doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                schema_filter: ~^(?!table_name)~

and then run php app/console doctrine:schema:update --dump-sql

I see SQL for creation of the excluded table.
When I comment the schema_filter .. no DB changes will be made.

This option should not produce create/alter/drop statements for excluded tables or I'm wrong?

I have wrote to Symfony about this, by they said that this is doctrine problem https://github.com/symfony/symfony/issues/19076

Originally created by @PlamenVasilev on GitHub (Jun 21, 2016). Originally assigned to: @Ocramius on GitHub. I have a problem with excluding table from schema with symfony 2.8.5 According to this http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html#manual-tables I can exclude tables form schema diff and ignore them When I set this filter to specific table ``` yaml doctrine: dbal: default_connection: default connections: default: schema_filter: ~^(?!table_name)~ ``` and then run `php app/console doctrine:schema:update --dump-sql` I see SQL for creation of the excluded table. When I comment the schema_filter .. no DB changes will be made. This option should not produce create/alter/drop statements for excluded tables or I'm wrong? I have wrote to Symfony about this, by they said that this is doctrine problem [https://github.com/symfony/symfony/issues/19076](url)
admin added the Invalid label 2026-01-22 15:00:06 +01:00
admin closed this issue 2026-01-22 15:00:06 +01:00
Author
Owner

@Ocramius commented on GitHub (Jun 21, 2016):

Please report it on DoctrineBundle unless you can reproduce it with just the ORM.

@Ocramius commented on GitHub (Jun 21, 2016): Please report it on DoctrineBundle unless you can reproduce it with just the ORM.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5162