Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add mandatory method and attribute #9724

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 2 commits into from
Closed

Add mandatory method and attribute #9724

wants to merge 2 commits into from

Conversation

tbredillet
Copy link
Contributor

@tbredillet tbredillet commented May 3, 2018

For the page "Implement a Simple Registration Form"
Without $roles, construct(), getRoles() and eraseCredentials(), this entity doesn't work because of his interface
It may be nice to add these methods so that you do not have any errors when you copy paste

Without $roles, construct(), getRoles() and eraseCredentials(), this entity doesn't work because of his interface
It may be nice to add these methods so that you do not have any errors when you copy paste
@javiereguiluz javiereguiluz changed the title Add mandatory method and attribut Add mandatory method and attribute May 3, 2018

public function eraseCredentials()
{
}

// other methods, including security methods like getRoles()
Copy link
Member

Choose a reason for hiding this comment

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

If we make these changes, we'll need to reword or remove this comment too:

// other methods, including security methods like getRoles()

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@javiereguiluz javiereguiluz added this to the 2.7 milestone May 7, 2018
@javiereguiluz
Copy link
Member

Thanks Thomas. This was a nice first contribution to Symfony Docs!

javiereguiluz added a commit that referenced this pull request May 9, 2018
This PR was squashed before being merged into the 2.7 branch (closes #9724).

Discussion
----------

Add mandatory method and attribute

For the page "Implement a Simple Registration Form"
Without $roles, construct(), getRoles() and eraseCredentials(), this entity doesn't work because of his interface
It may be nice to add these methods so that you do not have any errors when you copy paste

Commits
-------

9ddb69d Add mandatory method and attribute
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