填充Elastica Index时

时间:2016-04-14 13:00:38

标签: elasticsearch doctrine symfony

我正在开发一个php7,symfony 3.0,elasticsearch 2.3.1和doctrine的项目。 当我想在我的终端在phpstorm中执行此命令时,我收到此错误。通常一切都应该正常。

robin@Robin:~/Documents/RoeselareVrijwilligt/VrijwilligersTool$ php bin/console fos:elastica:populate
 11/11 [============================] 100%
Populating homestead/volunteerRefreshing homestead
PHP Fatal error:  Call to a member function getRepository() on null in /home/robin/Documents/RoeselareVrijwilligt/VrijwilligersTool/vendor/friendsofsymfony/elastica-bundle/Doctrine/ORM/Provider.php on line 114


  [Symfony\Component\Debug\Exception\FatalErrorException]   
  Error: Call to a member function getRepository() on null  


fos:elastica:populate [--index [INDEX]] [--type [TYPE]] [--no-reset] [--offset OFFSET] [--sleep SLEEP] [--batch-size BATCH-SIZE] [--ignore-errors] [--no-overwrite-format] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

0 个答案:

没有答案