Skip to content
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

Generate-Entities-Console-Command: Adding an 'avoid backup' flag #833

Merged
merged 2 commits into from
Jan 2, 2014
Merged

Generate-Entities-Console-Command: Adding an 'avoid backup' flag #833

merged 2 commits into from
Jan 2, 2014

Conversation

ronanguilloux
Copy link
Contributor

Introducing a new "avoid creating backup files" flag in the existing command-line options list:

$ /console orm:generate-entities src/ --no-backup;

Scope: Allowing cli user to avoid the default backup file generation (new ~EntityName.php file every time),
which is default behavior for now.

= adding only 5 lines to lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-2770

We use Jira to track the state of pull requests and the versions they got
included in.

@@ -80,6 +80,10 @@ protected function configure()
new InputOption(
'num-spaces', null, InputOption::VALUE_OPTIONAL,
'Defines the number of indentation spaces', 4
),
new InputOption(
'nobackup', null, InputOption::VALUE_NONE,
Copy link
Member

Choose a reason for hiding this comment

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

please use no-backup

beberlei added a commit that referenced this pull request Jan 2, 2014
…ator

Generate-Entities-Console-Command: Adding an 'avoid backup' flag
@beberlei beberlei merged commit 4158184 into doctrine:master Jan 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants