Skip to content

Commit 4032122

Browse files
committed
revert changes
1 parent 8ed81bf commit 4032122

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/Doctrine/EntityClassGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public function generateEntityClass(ClassNameDetails $entityClassDetails, bool $
8181
$entityClassDetails->getFullName(),
8282
'doctrine/Entity.tpl.php',
8383
[
84-
'_is_entity' => true,
8584
'use_statements' => $useStatements,
8685
'repository_class_name' => $repoClassDetails->getShortName(),
8786
'api_resource' => $apiResource,

src/Doctrine/EntityRegenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private function generateClass(ClassMetadata $metadata): string
139139
$path = $this->generator->generateClass(
140140
$metadata->name,
141141
'Class.tpl.php',
142-
['_is_entity' => true]
142+
[]
143143
);
144144
$this->generator->writeChanges();
145145

src/Generator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ public function createClassNameDetails(string $name, string $namespacePrefix, st
158158
}
159159
}
160160

161-
if (!str_ends_with($className, $suffix)) {
162-
$className = sprintf('%s%s', $className, $suffix);
163-
}
164-
165161
Validator::validateClassName($className, $validationErrorMessage);
166162

167163
// if this is a custom class, we may be completely different than the namespace prefix

0 commit comments

Comments
 (0)