[TYPO3-english] extbase create/update @dontvalidate

Richard Davies richard at ocular.co.nz
Tue Mar 31 22:31:09 CEST 2015


Hi,

Changed to ignorevalidation.
https://forum.typo3.org/index.php?t=msg&th=196975&goto=686194&#msg_686194

I haven't played with the validation but I think you'd only be able to
ignore validation on a whole parameter, not part of the parameter.

Richard

On 1 April 2015 at 00:36, Christian Tauscher <
christian.tauscher at media-distillery.de> wrote:

> Hallo.
>
> In my EXT I have some fields which are not representet directly in the
> database as there are:
>
> image0, image1 and imagecaption0, imagecaption1
>
> This images are NOT FAL images, I use the uploads folder instead.
> in DB I'd like to have a CSV list.
>
>
> Problem:
> The Form sends image1, image2 and the captions in separate fields, but the
> Domain does not have this fields.
> -> Error, the property mapper fails.
>
>
> I have read a lot about the property mapper but still have no idea how to
> work around my problem.
>
>
> latest try was in
>
> /**
>  * initialize create action
>  * @return void
>  * @dontvalidate image0
>  * @dontvalidate image1
>  * @dontvalidate imagecaption0
>  * @dontvalidate imagecaption1
>  */
> public function initializeCreateAction(\Tmd\Screenprinting\Domain\Model\Printitem
> $newPrintitem) {
>   debug($this->request->getArgument('newPrintitem'));
> }
> But this @dontvalidate does not help.
>
> in the initializeCreateAction() I can see the submitted values.
> How can I delete the helper Methods (image* and imagecaptioin*) and remap
> this field so that the createAction is satisfied.
>
> So far i didn't find a suitable example in my brain/books/google :-(
>
>
> Any help is welcome,
>
> Christian.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list