[FLOW3-general] @FLOW3\IgnoreValidation not working
Thomas Plessis
t.plessis at totemnumerique.com
Mon Sep 3 09:41:46 CEST 2012
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
More information about the FLOW3-general
mailing list