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