8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82c986b + 98604fb commit fc7246aCopy full SHA for fc7246a
form/form_collections.rst
@@ -11,13 +11,12 @@ Let's start by creating a ``Task`` entity::
11
// src/Entity/Task.php
12
namespace App\Entity;
13
14
- use Doctrine\Common\Collections\ArrayCollection;
15
use Doctrine\Common\Collections\Collection;
16
17
class Task
18
{
19
protected string $description;
20
- protected ArrayCollection $tags;
+ protected Collection $tags;
21
22
public function __construct()
23
@@ -466,7 +465,7 @@ you will learn about next!).
466
465
// ...
467
468
#[ORM\ManyToMany(targetEntity: Tag::class, cascade: ['persist'])]
469
- protected array $tags;
470
471
.. code-block:: yaml
472
0 commit comments