Skip to content

Commit 88655a9

Browse files
devojifrjaviereguiluz
authored andcommitted
Fix $tags type
1 parent d2c02fa commit 88655a9

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy