Multiple annotations with the same name are not supported by the reflection service
As the returned $tags array is indexed by the annotation name, e.g. two @validate annotations will override eachother.
Updated by Karsten Dambekalns almost 11 years ago
Did you see my comment at https://review.typo3.org/#patch,sidebyside,1300,2,Classes/Object/Proxy/ProxyMethod.php for
Previously one tag per value would be generated, now one tag that combines the values.
Updated by Andreas Förthner almost 11 years ago
Yes, but the values array contains the values of one tag, e.g. @validate abc def ghi means that $values = array('abc', 'def', 'ghi');
Having multiple @validate annotations doesn't work in either case. To make this possible the ReflectionService API has to be changed...
Updated by Christopher Hlubek over 10 years ago
I think the problem with the ProxyMethod was solved (generates multiple annotations again).
The methods for tags in the ReflectionService (e.g.
getMethodTagsValues) return an array of tags with values as array. So multiple annotations are returned inside the value array. This is also tested in the
Maybe it's the
ValidatorResolver that cannot handle multiple tags?