Skip to content

Updated associations.rst #9951

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

Closed
wants to merge 1 commit into from
Closed

Updated associations.rst #9951

wants to merge 1 commit into from

Conversation

ansien
Copy link
Contributor

@ansien ansien commented Jun 22, 2018

Updated to reflect correct nullable status of $category.

Updated to reflect correct nullable status of $category.
@HeahDude HeahDude added this to the 4.0 milestone Jun 22, 2018
@javiereguiluz
Copy link
Member

@ansien12 thanks for this fix ... and congrats on your first Symfony Docs contribution!

javiereguiluz added a commit that referenced this pull request Jul 11, 2018
This PR was merged into the 4.0 branch.

Discussion
----------

the product category must be nullable

At first I wanted to sync the return type of `getCategory()` with the changes done in #9951. Though while looking at the rest of the chapter I noticed that we indeed call `setCategory()` with `null` in a follow-up example. So I decided to allow the property to become `null` instead.

Commits
-------

31c5930 the product category must be nullable
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.

4 participants