I tried to get a list from using easy admin bundle items that have a OneToMany relation.
My Member
entity :
/**
* @ORM\OneToMany(targetEntity="Declaration", mappedBy="user")
*/
private $declarations;
My yaml file for Member:
list:
fields:
- { property: 'declarations', label: 'Label', template: 'type.html.twig'}
But I get the error
[Semantical Error] line 0, col 60 near 'declarations': Error: Invalid PathExpression. StateFieldPathExpression or SingleValuedAssociationField expected.