Skip to content

Instantly share code, notes, and snippets.

@rela589n
Created July 17, 2023 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rela589n/210232bacc6497b7bfe3a2f8afead344 to your computer and use it in GitHub Desktop.
Save rela589n/210232bacc6497b7bfe3a2f8afead344 to your computer and use it in GitHub Desktop.
Doctrine schema filter using service declaration
app.dbal.schema_filter:
class: Doctrine\Bundle\DoctrineBundle\Dbal\RegexSchemaAssetFilter
arguments: [ '#^(?!(table1|table2)$).*#' ]
tags:
- { name: doctrine.dbal.schema_filter }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment