-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support composite & non-identifier generated values #6684
Closed
Majkl578
wants to merge
287
commits into
doctrine:master
from
Majkl578:dev/composite-generated-values
Closed
Support composite & non-identifier generated values #6684
Majkl578
wants to merge
287
commits into
doctrine:master
from
Majkl578:dev/composite-generated-values
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… being applied everywhere
…in Mapping Drivers
…ing saga). Renamed identity generator to become sequencing generators.
This tool reads and writes YAML files so it should be removed.
…ling related to OO change.
… a single, unified structure generatorDefinition
…ine\ORM\Version`
…lass Drop `Doctrine\ORM\Version`, using `PackageVersions\Version::getVersion("doctrine/orm")` instead, which is more reliable
…properties-generator Use Generators instead of AppendIterator for properties iteration
greg0ire
reviewed
Sep 3, 2017
@@ -486,7 +486,7 @@ private function gatherColumn($classMetadata, FieldMetadata $fieldMetadata, Tabl | |||
$options['customSchemaOptions'] = $fieldOptions; | |||
} | |||
|
|||
if ($fieldMetadata->hasValueGenerator() && $fieldMetadata->getValueGenerator()->getType() === GeneratorType::IDENTITY && $classMetadata->getIdentifierFieldNames() == [$fieldName]) { | |||
if ($fieldMetadata->hasValueGenerator() && $fieldMetadata->getValueGenerator()->getType() === GeneratorType::IDENTITY && in_array($fieldName, $classMetadata->getIdentifierFieldNames(), true)) { |
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.
This line could use one or more linebreaks :P
00bc67a
to
f5d58be
Compare
f5d58be
to
1dbd8dc
Compare
c6a6212
to
9c82046
Compare
9f5fd37
to
e7d61c2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is now possible thanks to f482d64.
Possible enhancements:
Closes #6422.
Closes #4704.
Closes #5416.
Closes #2400.