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

后端 未结 3 1380
忘了有多久
忘了有多久 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 can use the currently undocumented IDENTITY function to select the FK IDs in a query:

    SELECT IDENTITY(c.parent) ...
    

提交回复
热议问题