Skip to content

Commit

Permalink
#6068 inlined code generating expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Nov 26, 2016
1 parent 1dfadef commit 3341781
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Doctrine/ORM/Tools/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1173,10 +1173,9 @@ protected function generateEntityStubMethods(ClassMetadataInfo $metadata)
! $fieldMapping['id'] ||
$metadata->generatorType == ClassMetadataInfo::GENERATOR_TYPE_NONE
) && (! $metadata->isEmbeddedClass || ! $this->embeddablesImmutable)
&& $code = $this->generateEntityStubMethod($metadata, 'set', $fieldMapping['fieldName'], $fieldMapping['type'], $nullableField)
) {
if ($code = $this->generateEntityStubMethod($metadata, 'set', $fieldMapping['fieldName'], $fieldMapping['type'], $nullableField)) {
$methods[] = $code;
}
$methods[] = $code;
}

if ($code = $this->generateEntityStubMethod($metadata, 'get', $fieldMapping['fieldName'], $fieldMapping['type'], $nullableField)) {
Expand Down

0 comments on commit 3341781

Please sign in to comment.