Symfony 4.4 make:entity add property failed

In Validator.php line 158:

  Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctri
  ne\Bundle\DoctrineBundle\Registry given, called in /var/www/project/vendor/symfony/maker-bundle/src/Maker/MakeEntity.php on line 303

It seems like the latest version is having some troubles. The easy fix for now is to modify your composer.json file and "downgrade" the doctrine/doctrine-bundle, from version ^2.1 to 2.1.0. After making this change, run composer update and everything should work.