From 1deabdefa6d7fc4f758c217f964437f736a08be3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 20 Aug 2014 18:23:26 +0200 Subject: [PATCH] [Reference] fix namespace in Expression constraint --- reference/constraints/Expression.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reference/constraints/Expression.rst b/reference/constraints/Expression.rst index d491adea2db..018d9549917 100644 --- a/reference/constraints/Expression.rst +++ b/reference/constraints/Expression.rst @@ -73,7 +73,7 @@ One way to accomplish this is with the Expression constraint: .. code-block:: php-annotations // src/Acme/DemoBundle/Model/BlogPost.php - namespace Acme\DemoBundle\Model\BlogPost; + namespace Acme\DemoBundle\Model; use Symfony\Component\Validator\Constraints as Assert; @@ -102,11 +102,10 @@ One way to accomplish this is with the Expression constraint: - .. code-block:: php // src/Acme/DemoBundle/Model/BlogPost.php - namespace Acme\DemoBundle\Model\BlogPost; + namespace Acme\DemoBundle\Model; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert;