1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | use Doctrine\ORM\Annotation as ORM; |
||
6 | |||
7 | /** |
||
8 | * @ORM\Entity(repositoryClass=DDC3231User1NoNamespaceRepository::class) |
||
9 | * @ORM\Table(name="no_namespace_users") |
||
10 | */ |
||
11 | class DDC3231User1NoNamespace |
||
0 ignored issues
–
show
|
|||
12 | { |
||
13 | /** |
||
14 | * @ORM\Id |
||
15 | * @ORM\Column(type="integer") |
||
16 | * @ORM\GeneratedValue(strategy="AUTO") |
||
17 | */ |
||
18 | protected $id; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string", length=255) |
||
22 | */ |
||
23 | protected $name; |
||
24 | } |
||
25 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.