8000 minor #11289 added use statement and filepath to be consistent (Oskar… · symfony/symfony-docs@943dd10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 943dd10

Browse files
committed
minor #11289 added use statement and filepath to be consistent (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- added use statement and filepath to be consistent <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- bbb6793 added use statement and filepath to be consistent
2 parents 5397a83 + bbb6793 commit 943dd10

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