[TYPO3-mvc] does dontvalidate not work on simple types
S.Korth
s.korth at dms-arts.com
Fri May 21 14:42:17 CEST 2010
Felix Oertel schrieb:
> hey,
>
> could it be that @dontvalidate does not work on simple types? i got
>
> /**
> * @param int $till
> * @dontvalidate $till
> */
> public function show($till = NULL) {
>
> }
>
> but anyway I get an exception cause validation of $till thrugh
> IntegerValidator.php fails ... when I change @param to mixed, everything
> works fine ...
>
> regards, foertel
Hey Felix,
i test it local. I don't know if iam doing something wrong, but in my
case this happens:
Within the Tx_Extbase_Validation_Validator_ConjunctionValidator there is
the "isValid()" Method. When i take a look in "$this->validators", there
are different Validator Objects when loading the page. In my case it
contains 4 Objects.
But when i use "@dontvalidate $myInt" then there is one Validator Object
left. But this only happens if i use "@dontvalidate $myInt". If i use
for example "@dontvalidate $myObject", it still contains 4 Validation
Objects. Also if i use "mixed" it contains 4 Objects. So, what happens
to the fourth Object?
Maybe this has something todo with the problem....
Sascha
More information about the TYPO3-project-typo3v4mvc
mailing list