DDC-3272 - fixing issue with mapped superclass name, minor refactoring
This commit is contained in:
parent
dd9a6bea0a
commit
4974edc70a
1 changed files with 6 additions and 8 deletions
|
@ -875,15 +875,13 @@ public function __construct()
|
|||
}
|
||||
}
|
||||
|
||||
if ($metadata->isMappedSuperclass) {
|
||||
$lines[] = ' * @' . $this->annotationsPrefix . 'MappedSuperClass';
|
||||
} else {
|
||||
$lines[] = ' * @' . $this->annotationsPrefix . 'Entity';
|
||||
}
|
||||
$customRepository = $metadata->customRepositoryClassName
|
||||
? '(repositoryClass="' . $metadata->customRepositoryClassName . '")'
|
||||
: '';
|
||||
|
||||
if ($metadata->customRepositoryClassName) {
|
||||
$lines[count($lines) - 1] .= '(repositoryClass="' . $metadata->customRepositoryClassName . '")';
|
||||
}
|
||||
$lines[] = ' * @' . $this->annotationsPrefix
|
||||
. ($metadata->isMappedSuperclass ? 'MappedSuperclass' : 'Entity')
|
||||
. $customRepository;
|
||||
|
||||
if (isset($metadata->lifecycleCallbacks) && $metadata->lifecycleCallbacks) {
|
||||
$lines[] = ' * @' . $this->annotationsPrefix . 'HasLifecycleCallbacks';
|
||||
|
|
Loading…
Add table
Reference in a new issue