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

Skip not mapped public properties in SchemaValidator #737

Merged
merged 1 commit into from Aug 10, 2013

Conversation

Koc
Copy link
Contributor

@Koc Koc commented Jul 28, 2013

No description provided.

@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-2577

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

@@ -241,6 +241,10 @@ public function validateClass(ClassMetadataInfo $class)
continue;
}

if (!isset($class->fieldMappings[$publicAttr->getName()]) && !isset($class->associationMappings[$publicAttr->getName()])) {
Copy link
Member

Choose a reason for hiding this comment

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

We use a CS that demands a space between !. We also restrict the column length to 120 chars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know that, but please take a look at this file https://github.com/Koc/doctrine2/blob/ebbfe504ee69a9e551a3e74bac740ef73b060e55/lib/Doctrine/ORM/Tools/SchemaValidator.php#L93, L99, L120, ... . Imho added lines should be consistent with other lines in same file.

Copy link
Member

Choose a reason for hiding this comment

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

@Koc that's just because we refuse CS cleanup pull requests. New code coming in should respect the CS and follow strict calisthenics wherever possible. Ignore the rest please.

@Koc
Copy link
Contributor Author

Koc commented Aug 6, 2013

@guilhermeblanco done

beberlei added a commit that referenced this pull request Aug 10, 2013
Skip not mapped public properties in SchemaValidator
@beberlei beberlei merged commit 95af021 into doctrine:master Aug 10, 2013
@Koc Koc deleted the fix-schema-validator-master branch December 11, 2013 22:51
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.

None yet

5 participants