From c76d2b58079961e8067375080801787d48afba60 Mon Sep 17 00:00:00 2001 From: Michel Weimerskirch Date: Wed, 6 Jul 2011 12:54:57 -0700 Subject: [PATCH] Fix error message --- src/Symfony/Component/Form/Util/PropertyPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Util/PropertyPath.php b/src/Symfony/Component/Form/Util/PropertyPath.php index 747bd122c5..9f33f9a2aa 100644 --- a/src/Symfony/Component/Form/Util/PropertyPath.php +++ b/src/Symfony/Component/Form/Util/PropertyPath.php @@ -349,7 +349,7 @@ class PropertyPath implements \IteratorAggregate $objectOrArray->$property = $value; } else if ($reflClass->hasProperty($property)) { if (!$reflClass->getProperty($property)->isPublic()) { - throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "set%s()"?', $property, $reflClass->getName(), $setter)); + throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()"?', $property, $reflClass->getName(), $setter)); } $objectOrArray->$property = $value;