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

Symfony2.6.3 生成repository的问题

WBOY
Release: 2016-06-06 20:38:25
Original
1160 people have browsed it

本人按照教程里的 在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是同一个命名空间下

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template