laravel-doctrine / orm

An integration library for Laravel and Doctrine ORM
MIT License
829 stars 178 forks source link

[QUESTION] php artisan doctrine:generate:entities has error #536

Closed vanchao0519 closed 1 year ago

vanchao0519 commented 1 year ago

[QUESTION]

Package version, Laravel version

Package version: 1.7 Laravel version: 8.0

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

php artisan  doctrine:generate:entities ./   --generate-annotations --generate-methods

Generating getter and setter for default entity manager...

TypeError

str_repeat() expects parameter 2 to be int, string given

  at vendor/doctrine/orm/lib/Doctrine/ORM/Tools/EntityGenerator.php:486
    482▕      * @return void
    483▕      */
    484▕     public function setNumSpaces($numSpaces)
    485▕     {
  ➜ 486▕         $this->spaces    = str_repeat(' ',  $numSpaces);
    487▕         $this->numSpaces = $numSpaces;
    488▕     }
    489▕
    490▕     /**

      +15 vendor frames
  16  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))