Doctrine cannot map entity/repository namespace in chain

后端 未结 4 1799
暗喜
暗喜 2021-01-24 17:44

I\'m trying to setup symfony with doctrine, configuring doctrine is new for me.

I try to retrieve a entity from the database by using the following code in my controller

4条回答
  •  时光说笑
    2021-01-24 18:32

    Try this:

    /**
     *
     * @ORM\Table(name="my_table_name")
     * @ORM\Entity()
     */
    class MyClass
    

提交回复
热议问题