|
@@ 311-315 (lines=5) @@
|
| 308 |
|
* @throws MappingException |
| 309 |
|
*/ |
| 310 |
|
private function getEntityType($className = null) { |
| 311 |
|
if (is_string($className) && boolval($className)) { |
| 312 |
|
$refClass = new \ReflectionClass($className); |
| 313 |
|
} else { |
| 314 |
|
$refClass = $this->getClassMetadata()->getReflectionClass(); |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
/** @var Type $type */ |
| 318 |
|
$type = $this->annotationReader->getClassAnnotation($refClass, Type::class); |
|
@@ 335-339 (lines=5) @@
|
| 332 |
|
|
| 333 |
|
private function getEntityIndex($className = null) |
| 334 |
|
{ |
| 335 |
|
if (is_string($className) && boolval($className)) { |
| 336 |
|
$refClass = new \ReflectionClass($className); |
| 337 |
|
} else { |
| 338 |
|
$refClass = $this->getClassMetadata()->getReflectionClass(); |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
$index = $this->annotationReader->getClassAnnotation($refClass, Index::class); |
| 342 |
|
|