0
votes

if i use

use Doctrine\ORM\Mapping as ORM;

i get the following error

Class \"SilexStarter\Entity\User\User\" sub class of \"SilexStarter\Entity\AbstractEntity\" is not a valid entity or mapped super class.

(without the use with alias it works fine).
The alias ist out of the doctrine documentation.

My user class: user class
My AbstractEntity class: AbstractEntity class

I already used google and stackoverflow (search), but i dont find any solution.
I hope you can help me ! :)

1

1 Answers

0
votes

Changing the line

 * @ORM\Entity(repositoryClass="UserRepository")

to

 * @ORM\Entity(repositoryClass="SilexStarter\Repository\UserRepository")

resolve the problem?