From bbb67934751bf43a9567e0452dcb8b5136dcbcd5 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 3 Apr 2019 21:32:29 +0200 Subject: [PATCH] added use statement and filepath to be consistent --- doctrine/lifecycle_callbacks.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doctrine/lifecycle_callbacks.rst b/doctrine/lifecycle_callbacks.rst index 95923eee7cf..04245f18e6e 100644 --- a/doctrine/lifecycle_callbacks.rst +++ b/doctrine/lifecycle_callbacks.rst @@ -15,6 +15,9 @@ callbacks. This is not necessary if you're using YAML or XML for your mapping. .. code-block:: php-annotations + // src/AppBundle/Entity/Product.php + use Doctrine\ORM\Mapping as ORM; + /** * @ORM\Entity() * @ORM\HasLifecycleCallbacks() @@ -33,6 +36,7 @@ the current date, only when the entity is first persisted (i.e. inserted): .. code-block:: php-annotations // src/AppBundle/Entity/Product.php + use Doctrine\ORM\Mapping as ORM; /** * @ORM\PrePersist