diff --git a/doctrine/associations.rst b/doctrine/associations.rst index b17877c4bdf..09561386d0b 100644 --- a/doctrine/associations.rst +++ b/doctrine/associations.rst @@ -220,7 +220,7 @@ class that will hold these objects: // ... #[ORM\OneToMany(targetEntity: Product::class, mappedBy: 'category')] - private array $products; + private Collection $products; public function __construct() {