Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 填充Elastica索引时出现致命错误_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Doctrine_Symfony - Fatal编程技术网 elasticsearch 填充Elastica索引时出现致命错误,elasticsearch,doctrine,symfony,elasticsearch,Doctrine,Symfony" /> elasticsearch 填充Elastica索引时出现致命错误,elasticsearch,doctrine,symfony,elasticsearch,Doctrine,Symfony" />

elasticsearch 填充Elastica索引时出现致命错误

elasticsearch 填充Elastica索引时出现致命错误,elasticsearch,doctrine,symfony,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% Po

我正在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>
robin@Robin:~/Documents/RoeselareVrijwilligt/VrijwilligersTool$php-bin/console-fos:elastica:populate
11/11 [============================] 100%
居住宅基地/居住宅基地
PHP致命错误:在第114行的/home/robin/Documents/RoeselareVrijwilligt/VrijwilligersTool/vendor/friendsofsymfony/elastica bundle/Doctrine/ORM/Provider.PHP中调用null上的成员函数getRepository()
[Symfony\Component\Debug\Exception\FatalErrorException]
错误:在null上调用成员函数getRepository()
fos:elastica:populate[--index[index][--type[type][--no reset][--offset offset][--sleep sleep][--batch size batch-size][--忽略错误][--no overwrite format][-h |--help][-q |--quiet][-v | vv | vv |--verbose][-v |--version][-ansi][--no-ansi][--n |--no-interaction][-e][-env-env-env-env][--no-debug]

我会考虑从输出片段中删除这些名字。他的名字也可以在他的个人资料中公开,我认为这无关紧要。:)