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 b9712ed commit ab2a5b5Copy full SHA for ab2a5b5
Resources/doc/index.rst
@@ -311,6 +311,26 @@ for Doctrine's ORM:
311
312
.. configuration-block::
313
314
+ .. code-block:: php-attributes
315
+
316
+ // src/Entity/User.php
317
+ namespace App\Entity;
318
319
+ use Doctrine\DBAL\Types\Types;
320
+ use Doctrine\ORM\Mapping as ORM;
321
322
+ #[Entity]
323
+ #[Table(name: 'user')]
324
+ class User
325
+ {
326
+ #[ORM\Id]
327
+ #[ORM\GeneratedValue(strategy: 'AUTO')]
328
+ #[ORM\Column(type: Types:INT)]
329
+ private $id;
330
331
+ #[ORM\Column(type: Types:STRING, length: 255)]
332
+ private $name;
333
334
.. code-block:: php-annotations
335
336
// src/Entity/User.php
0 commit comments