Skip to content

Commit 7a40a0d

Browse files
committed
minor #18647 Fix $tags type (devojifr)
This PR was submitted for the 6.4 branch but it was squashed and merged into the 6.2 branch instead. Discussion ---------- Fix $tags type $tags using in the documentation must be a Collection to be persisted. Commits ------- 88655a9 Fix $tags type
2 parents d2c02fa + 88655a9 commit 7a40a0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Let's start by creating a ``Task`` entity::
1717
class Task
1818
{
1919
protected string $description;
20-
protected ArrayCollection $tags;
20+
protected Collection $tags;
2121

2222
public function __construct()
2323
{
@@ -466,7 +466,7 @@ you will learn about next!).
466466
// ...
467467
468468
#[ORM\ManyToMany(targetEntity: Tag::class, cascade: ['persist'])]
469-
protected array $tags;
469+
protected Collection $tags;
470470
471471
.. code-block:: yaml
472472

0 commit comments

Comments
 (0)