Home >Backend Development >PHP Tutorial >Symfony2.6.3 生成repository的问题

Symfony2.6.3 生成repository的问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:38:251188browse

本人按照教程里的 在entity里设置好@ORM\Entity(repositoryClass="Blogger\BlogBundle\Repository\BlogRepository")之后在控制台执行doctrine:generate:entities
entity重新生成了 但是却没有生成repository文件,请问这是什么原因

回复内容:

本人按照教程里的 在entity里设置好@ORM\Entity(repositoryClass="Blogger\BlogBundle\Repository\BlogRepository")之后在控制台执行doctrine:generate:entities
entity重新生成了 但是却没有生成repository文件,请问这是什么原因

自己解决了,指定的repositoryClass必须和entity是同一个命名空间下

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn