-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Document Updated make:entity command #9487
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice. I know this command is controversial for some people ... but it will definitely help lots of our readers. Thanks!
doctrine.rst
Outdated
.. _doctrine-adding-mapping: | ||
|
||
You can use the ``make:entity`` command to create this class and any fields you | ||
need. The command will ask you some questions - answer them like we've done below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We never use "we" in the docs, so what about: like we've done below
-> like done below
?
Can we please rebase this to merge it? Thanks! |
Fixed! Not with a rebase though... im on my phone... :) |
This PR was squashed before being merged into the 4.0 branch (closes #9487). Discussion ---------- Document Updated make:entity command Hi guys! The make:entity command in MakerBundle 1.3 is quite a bit more powerful - it interactively asks for fields (like `doctrine:generate:entity`), but also updating existing entities, supports relationships and generates adders/removers that synchronize the owning side of a relationship. I've still included what the generated code looks like, because I want users to know the command is optional, and also to see what the code looks like when they're reading. Cheers! Commits ------- 5569400 Document Updated make:entity command
@weaverryan Something looks really strange here. Why does the PR contain so many changed files? |
Hi guys!
The make:entity command in MakerBundle 1.3 is quite a bit more powerful - it interactively asks for fields (like
doctrine:generate:entity
), but also updating existing entities, supports relationships and generates adders/removers that synchronize the owning side of a relationship.I've still included what the generated code looks like, because I want users to know the command is optional, and also to see what the code looks like when they're reading.
Cheers!