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

Use cascade=all if all cascade options set #458

Merged
merged 4 commits into from
Oct 5, 2012

Conversation

carlos-granados
Copy link

The YAML and XML metadata exporters output cascade=all if all five cascade options are set. The php and annotation exporter do not, they output cascade=list of all 5 cascades instead.

In order that all 4 exporters offer the same behavior, I updated the php and annotations exporters so that they export cascade=all

@doctrinebot
Copy link

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2049

@@ -99,6 +99,9 @@ public function exportClassMetadata(ClassMetadataInfo $metadata)
unset($cascade[$key]);
}
}
if (count($cascade) === 5) {
$cascade = array('all');
}
Copy link
Member

Choose a reason for hiding this comment

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

Please add an empty line before and after the if block

@carlos-granados
Copy link
Author

Added empty lines around if block and removed trailing whitespace

beberlei added a commit that referenced this pull request Oct 5, 2012
Use cascade=all if all cascade options set
@beberlei beberlei merged commit 0c8be37 into doctrine:master Oct 5, 2012
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