Skip to content

Commit

Permalink
Merge pull request #790 from weaverryan/pointing_to_maker
Browse files Browse the repository at this point in the history
Deprecating doctrine:generate:entities and pointing to MakerBundle
  • Loading branch information
kimhemsoe authored Mar 25, 2018
2 parents 09fb990 + 16b66bc commit 7f2a013
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Command/GenerateEntitiesDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ class is supposed to extend which. You have to adjust the entity
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
trigger_error('The doctrine:generate:entity command has been deprecated.', E_USER_DEPRECATED);
$output->writeln([
' <comment>NOTE:</comment> The <info>doctrine:generate:entities</info> command has been deprecated.',
' To read more about the differences between anemic and rich models go here <info>http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html#adding-behavior-to-entities</info>.',
' If you wish to generate your entities, use <info>make:entity --regenerate</info> from MakerBundle instead.',
]);

$manager = new DisconnectedMetadataFactory($this->getContainer()->get('doctrine'));

try {
Expand Down

0 comments on commit 7f2a013

Please sign in to comment.