소스 검색

merged branch mweimerskirch/patch-3 (PR #1565)

Commits
-------

c76d2b5 Fix error message

Discussion
----------

[Form] Fix error message
Fabien Potencier 14 년 전
부모
커밋
3e3979a7a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Form/Util/PropertyPath.php

+ 1 - 1
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;