Skip to content

Commit 28319be

Browse files
authored
Merge pull request #1154 from jrushlow/fix/empty-attribute
[make:entity] remove empty parenthesis on `id`
2 parents add71d5 + 09d6b03 commit 28319be

File tree

30 files changed

+30
-30
lines changed

30 files changed

+30
-30
lines changed

src/Resources/skeleton/doctrine/Entity.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class <?= $class_name."\n" ?>
1717
{
1818
#[ORM\Id]
1919
#[ORM\GeneratedValue]
20-
#[ORM\Column()]
20+
#[ORM\Column]
2121
private ?int $id = null;
2222

2323
public function getId(): ?int

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BaseClient
1111

1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\Column]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Client extends BaseClient
1414
/**
1515
* @var string
1616
*/
17-
#[ORM\Column()]
17+
#[ORM\Column]
1818
private ?string $apiKey = null;
1919

2020
#[ORM\ManyToMany(targetEntity: Tag::class)]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#[ORM\Embeddable]
99
class Embed
1010
{
11-
#[ORM\Column()]
11+
#[ORM\Column]
1212
private ?int $val = null;
1313

1414
public function getVal(): ?int

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
public function getId(): ?int

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\OneToMany(targetEntity: UserAvatar::class, mappedBy: 'user')]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\ManyToOne(inversedBy: 'avatars', cascade: ['persist', 'remove'])]

tests/Doctrine/fixtures/expected_no_overwrite/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
#[ORM\OneToOne(inversedBy: 'userProfile', cascade: ['persist', 'remove'])]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BaseClient
1111

1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\Column]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Client extends BaseClient
1414
/**
1515
* @var string
1616
*/
17-
#[ORM\Column()]
17+
#[ORM\Column]
1818
private ?string $apiKey = null;
1919

2020
#[ORM\ManyToMany(targetEntity: Tag::class)]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#[ORM\Embeddable]
99
class Embed
1010
{
11-
#[ORM\Column()]
11+
#[ORM\Column]
1212
private ?int $val = null;
1313

1414
public function getVal(): ?int

tests/Doctrine/fixtures/expected_overwrite/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
public function getId(): ?int

tests/Doctrine/fixtures/expected_overwrite/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\OneToMany(targetEntity: UserAvatar::class, mappedBy: 'user')]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\ManyToOne(inversedBy: 'avatars', cascade: ['persist', 'remove'])]

tests/Doctrine/fixtures/expected_overwrite/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
#[ORM\OneToOne(inversedBy: 'userProfile', cascade: ['persist', 'remove'])]

tests/Doctrine/fixtures/source_project/src/Entity/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class BaseClient
1111

1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\Column]

tests/Doctrine/fixtures/source_project/src/Entity/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Client extends BaseClient
1313
/**
1414
* @var string
1515
*/
16-
#[ORM\Column()]
16+
#[ORM\Column]
1717
private ?string $apiKey = null;
1818

1919
#[ORM\ManyToMany(targetEntity: Tag::class)]

tests/Doctrine/fixtures/source_project/src/Entity/Embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
#[ORM\Embeddable]
99
class Embed
1010
{
11-
#[ORM\Column()]
11+
#[ORM\Column]
1212
private ?int $val = null;
1313
}

tests/Doctrine/fixtures/source_project/src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Tag
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
public function getId(): ?int

tests/Doctrine/fixtures/source_project/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\OneToMany(targetEntity: UserAvatar::class, mappedBy: 'user')]

tests/Doctrine/fixtures/source_project/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\ManyToOne(inversedBy: 'avatars', cascade: ['persist', 'remove'])]

tests/Doctrine/fixtures/source_project/src/Entity/UserProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UserProfile
1010
{
1111
#[ORM\Id]
1212
#[ORM\GeneratedValue]
13-
#[ORM\Column()]
13+
#[ORM\Column]
1414
private ?int $id = null;
1515

1616
#[ORM\OneToOne(inversedBy: 'userProfile', cascade: ['persist', 'remove'])]

tests/fixtures/make-entity/entities/attributes/User-basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class User
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\Column(length: 255, nullable: true)]

tests/fixtures/make-entity/entities/attributes/User-custom-namespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class User
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\Column(length: 255, nullable: true)]

tests/fixtures/make-entity/entities/attributes/User-invalid-method-no-property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class User
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
public function getId()

tests/fixtures/make-entity/entities/attributes/User-invalid-method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class User
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\Column(length: 255, nullable: true)]

tests/fixtures/make-entity/entities/attributes/UserAvatarPhoto-basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserAvatarPhoto
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
public function getId()

tests/fixtures/make-entity/regenerate-embedded/attributes/src/Entity/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Invoice
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue(strategy: 'AUTO')]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\Column(length: 255, name: 'title')]

tests/fixtures/make-entity/regenerate/attributes/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class User
1111
{
1212
#[ORM\Id]
1313
#[ORM\GeneratedValue]
14-
#[ORM\Column()]
14+
#[ORM\Column]
1515
private ?int $id = null;
1616

1717
#[ORM\Column(length: 255, nullable: true)]

tests/fixtures/make-entity/regenerate/attributes/src/Entity/UserAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserAvatar
99
{
1010
#[ORM\Id]
1111
#[ORM\GeneratedValue]
12-
#[ORM\Column()]
12+
#[ORM\Column]
1313
private ?int $id = null;
1414

1515
#[ORM\ManyToOne(inversedBy: 'avatars', cascade: ['persist', 'remove'])]

0 commit comments

Comments
 (0)