diff --git a/en/cookbook/aggregate-fields.rst b/en/cookbook/aggregate-fields.rst index 521f5d025..5d0981b06 100644 --- a/en/cookbook/aggregate-fields.rst +++ b/en/cookbook/aggregate-fields.rst @@ -46,7 +46,7 @@ Our entities look like: private $no; /** - * @OneToMany(targetEntity="Entry", mappedBy="entries", cascade={"persist"}) + * @OneToMany(targetEntity="Entry", mappedBy="account", cascade={"persist"}) */ private $entries;