Skip to content

Commit 7757eb5

Browse files
committed
remove annotation property
1 parent cb015c6 commit 7757eb5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Util/ClassSourceManipulator.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ final class ClassSourceManipulator
4747
private const CONTEXT_CLASS_METHOD = 'class_method';
4848

4949
private bool $overwrite;
50-
private bool $useAnnotations;
5150
private bool $fluentMutators;
5251
private bool $useAttributesForDoctrineMapping;
5352
private Parser\Php7 $parser;
@@ -70,7 +69,6 @@ public function __construct(
7069
bool $useAttributesForDoctrineMapping = true
7170
) {
7271
$this->overwrite = $overwrite;
73-
$this->useAnnotations = $useAnnotations;
7472

7573
// @TODO - This is a placeholder. CSM is internal and these triggers can be removed once we refactor to use only attributes.
7674
if ($useAnnotations) {
@@ -113,12 +111,6 @@ public function addEntityField(string $propertyName, array $columnOptions, array
113111
$isId = (bool) ($columnOptions['id'] ?? false);
114112
$attributes[] = $this->buildAttributeNode(Column::class, $columnOptions, 'ORM');
115113

116-
// if ($this->useAttributesForDoctrineMapping) {
117-
// $attributes[] = $this->buildAttributeNode(Column::class, $columnOptions, 'ORM');
118-
// } else {
119-
// $comments[] = $this->buildAnnotationLine('@ORM\Column', $columnOptions);
120-
// }
121-
122114
$defaultValue = null;
123115
if ('array' === $typeHint) {
124116
$defaultValue = new Node\Expr\Array_([], ['kind' => Node\Expr\Array_::KIND_SHORT]);

0 commit comments

Comments
 (0)