Symfony2 and Doctrine - Error: Invalid PathExpression. Must be a StateFieldPathExpression

后端 未结 3 1377
忘了有多久
忘了有多久 2020-11-27 16:33

I have an entity that looks like this:

/**
 * @Gedmo\\Tree(type=\"nested\")
 * @ORM\\Table(name=\"categories\")
 * @ORM\\Entity()
 */
class Category extends          


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 16:59

    You are selecting an object that is not joined. Like said in another answer, you have to do something like :

    qb->innerJoin("c.parent", "p")
    

提交回复
热议问题