Skip to content

Fix $tags type #18647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged

Conversation

devojifr
Copy link
Contributor

$tags using in the documentation must be a Collection to be persisted.

@carsonbot carsonbot added this to the 6.4 milestone Jul 30, 2023
@HeahDude
Copy link
Contributor

👍 I think we need the same fix line 20.

@devojifr
Copy link
Contributor Author

Exactly!
I've added a new commit.

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for that PR!

@@ -17,7 +17,7 @@ Let's start by creating a ``Task`` entity::
class Task
{
protected string $description;
protected ArrayCollection $tags;
protected Collection $tags;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayCollection use statement can be removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this while merging. Thanks.

@javiereguiluz javiereguiluz modified the milestones: 6.4, 6.2 Jul 31, 2023
@javiereguiluz javiereguiluz changed the base branch from 6.4 to 6.2 July 31, 2023 13:34
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner July 31, 2023 13:34
@javiereguiluz javiereguiluz force-pushed the form_collections_tags_variable_type branch from 4bc4f80 to 88655a9 Compare July 31, 2023 13:34
@javiereguiluz javiereguiluz merged commit 7a40a0d into symfony:6.2 Jul 31, 2023
@javiereguiluz
Copy link
Member

@devojifr thanks a lot for improving this ... and congrats on your first Symfony Docs contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants