Created
February 18, 2015 10:14
-
-
Save carltondickson/aa923e1c07f6023805f7 to your computer and use it in GitHub Desktop.
Doctrine - Reverse engineer single table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @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