8000 added use statement and filepath to be consistent · symfony/symfony-docs@bbb6793 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbb6793

Browse files
committed
added use statement and filepath to be consistent
1 parent e523833 commit bbb6793

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doctrine/lifecycle_callbacks.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ callbacks. This is not necessary if you're using YAML or XML for your mapping.
1515

1616
.. code-block:: php-annotations
1717
18+
// src/AppBundle/Entity/Product.php
19+
use Doctrine\ORM\Mapping as ORM;
20+
1821
/**
1922
* @ORM\Entity()
2023
* @ORM\HasLifecycleCallbacks()
@@ -33,6 +36,7 @@ the current date, only when the entity is first persisted (i.e. inserted):
3336
.. code-block:: php-annotations
3437
3538
// src/AppBundle/Entity/Product.php
39+
use Doctrine\ORM\Mapping as ORM;
3640
3741
/**
3842
* @ORM\PrePersist

0 commit comments

Comments
 (0)
0