@@ 684-686 (lines=3) @@ | ||
681 | } |
|
682 | } elseif ($fieldMapping['type'] === ClassMetadataInfo::ONE) { |
|
683 | $nullable = $this->isAssociationNullable($fieldMapping) ? 'null' : null; |
|
684 | if ($code = $this->generateDocumentStubMethod($metadata, 'set', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null, $nullable)) { |
|
685 | $methods[] = $code; |
|
686 | } |
|
687 | if ($code = $this->generateDocumentStubMethod($metadata, 'get', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
688 | $methods[] = $code; |
|
689 | } |
|
@@ 687-689 (lines=3) @@ | ||
684 | if ($code = $this->generateDocumentStubMethod($metadata, 'set', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null, $nullable)) { |
|
685 | $methods[] = $code; |
|
686 | } |
|
687 | if ($code = $this->generateDocumentStubMethod($metadata, 'get', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
688 | $methods[] = $code; |
|
689 | } |
|
690 | } elseif ($fieldMapping['type'] === ClassMetadataInfo::MANY) { |
|
691 | if ($code = $this->generateDocumentStubMethod($metadata, 'add', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
692 | $methods[] = $code; |
|
@@ 691-693 (lines=3) @@ | ||
688 | $methods[] = $code; |
|
689 | } |
|
690 | } elseif ($fieldMapping['type'] === ClassMetadataInfo::MANY) { |
|
691 | if ($code = $this->generateDocumentStubMethod($metadata, 'add', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
692 | $methods[] = $code; |
|
693 | } |
|
694 | if ($code = $this->generateDocumentStubMethod($metadata, 'remove', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
695 | $methods[] = $code; |
|
696 | } |
|
@@ 694-696 (lines=3) @@ | ||
691 | if ($code = $this->generateDocumentStubMethod($metadata, 'add', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
692 | $methods[] = $code; |
|
693 | } |
|
694 | if ($code = $this->generateDocumentStubMethod($metadata, 'remove', $fieldMapping['fieldName'], isset($fieldMapping['targetDocument']) ? $fieldMapping['targetDocument'] : null)) { |
|
695 | $methods[] = $code; |
|
696 | } |
|
697 | if ($code = $this->generateDocumentStubMethod($metadata, 'get', $fieldMapping['fieldName'], '\Doctrine\Common\Collections\Collection')) { |
|
698 | $methods[] = $code; |
|
699 | } |