We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf60411 commit 4696cb7Copy full SHA for 4696cb7
README.md
@@ -35,15 +35,9 @@ WHERE u0_.id = 1
35
See the used entity (it makes sense to put table names and index names into public constants to bind it together and reference it easily):
36
37
```php
38
-/**
39
- * @ORM\Table(
40
- * name=User::TABLE_NAME,
41
- * indexes={
42
- * @ORM\Index(name=User::IDX_FOO, columns={"id"})
43
- * }
44
- * )
45
- * @ORM\Entity
46
- */
+#[ORM\Table(name: self::TABLE_NAME)]
+#[ORM\Index(name: self::IDX_FOO, columns: ['id'])]
+#[ORM\Entity]
47
class User
48
{
49
public const TABLE_NAME = 'user';
0 commit comments