@@ 593-595 (lines=3) @@ | ||
590 | return; |
|
591 | } |
|
592 | ||
593 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
594 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
595 | } |
|
596 | ||
597 | $this->customRepositoryClassName = $repositoryClassName; |
|
598 | } |
|
@@ 756-758 (lines=3) @@ | ||
753 | public function setDiscriminatorMap(array $map) |
|
754 | { |
|
755 | foreach ($map as $value => $className) { |
|
756 | if (strpos($className, '\\') === false && strlen($this->namespace)) { |
|
757 | $className = $this->namespace . '\\' . $className; |
|
758 | } |
|
759 | $this->discriminatorMap[$value] = $className; |
|
760 | if ($this->name == $className) { |
|
761 | $this->discriminatorValue = $value; |
|
@@ 1920-1922 (lines=3) @@ | ||
1917 | ||
1918 | if (isset($mapping['discriminatorMap'])) { |
|
1919 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1920 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1921 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1922 | } |
|
1923 | } |
|
1924 | } |
|
1925 |