0

我试图从使用具有 OneToMany 关系的简单管理捆绑项目中获取列表。

我的Member实体:

/**
 * @ORM\OneToMany(targetEntity="Declaration", mappedBy="user")
 */
private $declarations;

我的会员 yaml 文件:

list:
    fields:
        - { property: 'declarations', label: 'Label', template: 'type.html.twig'}

但我得到了错误

[语义错误] 第 0 行,“声明”附近的第 60 列:错误:无效的路径表达式。需要 StateFieldPathExpression 或 SingleValuedAssociationField。

4

0 回答 0