@@ 313-317 (lines=5) @@ | ||
310 | $reflection = new ReflectionClass($class); |
|
311 | $className = $reflection->getShortName(); |
|
312 | ||
313 | if ($reflection->isSubclassOf(Repository::class)) { |
|
314 | if ($this->repositoryPostifx) { |
|
315 | $className = substr($className, 0, strlen($className) - strlen($this->repositoryPostifx)); |
|
316 | } |
|
317 | } |
|
318 | ||
319 | if ($reflection->isSubclassOf(Entity::class)) { |
|
320 | if ($this->entityPostfix) { |
|
@@ 319-323 (lines=5) @@ | ||
316 | } |
|
317 | } |
|
318 | ||
319 | if ($reflection->isSubclassOf(Entity::class)) { |
|
320 | if ($this->entityPostfix) { |
|
321 | $className = substr($className, 0, strlen($className) - strlen($this->entityPostfix)); |
|
322 | } |
|
323 | } |
|
324 | ||
325 | $this->spaceNames[$class] = $this->mapper->getSchema()->toUnderscore($className); |
|
326 | } |