[FLOW3-general] @FLOW3\IgnoreValidation not working

"Christian Müller (FLOW3 Team)" christian.mueller at typo3.org
Tue Sep 4 13:42:05 CEST 2012


Could you check if your 
Packages/Framework/TYPO3.FLOW3/Classes/Annotations/IgnoreValdation.php 
file actually exists (it should) and also if there was a Proxy generated 
for it? If that doesn't help it could still be a problem of the class 
loader which too would be quite strange.

Cheers,
Christian


On 03/09/12 09:50, David Sporer wrote:
> Hi,
>
> thank you for your answer.
> But the @FLOW3\Inject Annotations are working so I don't think this is
> the problem.
> The exact flow3-version is 1.0.6 btw.
>
> Regards
> David
>
> Am 03.09.2012 um 09:41 schrieb Thomas Plessis <t.plessis at totemnumerique.com>:
>
>> Be sure you have injected FLOW3 annotation like this :
>>
>> use TYPO3\FLOW3\Annotations as FLOW3;
>>
>> Personally i'm using ignore validation like this :
>>
>> @FLOW3\IgnoreValidation("$passTemplate")
>>
>> regards,
>>
>> Thomas Plessis
>> Développeur multimédia
>> --
>> TOTEMnumerique
>> 9, Place St Étienne
>> 31000 Toulouse
>> T. 05 61 14 64 54
>> F. 05 61 14 64 55
>>
>> Le 1 sept. 2012 à 16:43, David Sporer a écrit :
>>
>>> Hi,
>>>
>>>
>>>
>>> I have a problem with the IgnoreValidation Annotation in FLOW3 1.0
>>>
>>> If I add the Annotation to the editAction of my Controller it throws the
>>> following error:
>>>
>>> [Semantical Error] The annotation
>>> "@\TYPO3\FLOW3\Annotations\IgnoreValidation" in method
>>> SporerWebservices\PassbookPasses\Controller\PassTemplateController::editActi
>>> on() does not exist, or could not be auto-loaded.
>>>
>>>
>>>
>>> This is how my method looks like:
>>>
>>>      /**
>>>
>>>      * @param \SporerWebservices\PassbookPasses\Domain\Model\PassTemplate
>>> $passTemplate the pass template to edit
>>>
>>>      * @FLOW3\IgnoreValidation(argumentName="$passTemplate")
>>>
>>>      * @return void
>>>
>>>      */
>>>
>>>        public function
>>> editAction(\SporerWebservices\PassbookPasses\Domain\Model\PassTemplate
>>> $passTemplate) {
>>>
>>>        .
>>>
>>>        }
>>>
>>> The use TYPO3\FLOW3\Annotations as FLOW3; is there also
>>>
>>> I've also tried
>>>
>>> @FLOW3\IgnoreValidation(argumentName="passTemplate")
>>>
>>> @FLOW3\IgnoreValidation("passTemplate")
>>>
>>> @FLOW3\IgnoreValidation("$passTemplate")
>>>
>>> @FLOW3\IgnoreValidation
>>>
>>>
>>>
>>> The last one gives me the error that the argument name is mandatory.
>>>
>>> I've googled a lot but could not found any solution.
>>>
>>>
>>>
>>> Am I doing something wrong?
>>>
>>>
>>>
>>> Thank you!
>>>
>>> Regards
>>>
>>> David
>>>
>>> _______________________________________________
>>> FLOW3-general mailing list
>>> FLOW3-general at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general





More information about the FLOW3-general mailing list