Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Created February 18, 2015 10:14
Show Gist options
  • Save carltondickson/aa923e1c07f6023805f7 to your computer and use it in GitHub Desktop.
Save carltondickson/aa923e1c07f6023805f7 to your computer and use it in GitHub Desktop.
Doctrine - Reverse engineer single table
/** @var \Doctrine\DBAL\Connection $connection */
$config = $connection->getConfiguration();
// for excluding an specific table
$config->setFilterSchemaAssetsExpression('/^(?!table_name_to_exclude).*$/');
When we try to generate Entities from database, with:
$config->setFilterSchemaAssetsExpression('/^(recipes|ingredients).*$/');
# Source: https://coderwall.com/p/jofhdw/doctrine-tell-which-tables-to-work-with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment