[TYPO3-mvc] Extbase 1.3 Model Validation In Controller

chris Wolff chris at connye.com
Wed Aug 7 09:41:24 CEST 2013


Hi Philip,
Ich glaub ich hab mich nicht klar ausgedrückt.
ich habe eine model komplett mit validation annotations. nur mein
model wird leider nicht als
action argument übergeben. weil es sich zum teil aus arugmenten meiner
aktion und zum teil aus anderen datenquellen zusammen baut.

mein code sieht ungefähr so aus:

$object = $this->objectManager->get('tx_myModel');
$object->setFoo($actionArgument1)
$object->setBar($someDataFromADiffferentSource).
...
/* Wie validiere ich jetzt das model bevor ich es ins repository packe */
$objectRepository->add($object);

gruss chris



2013/8/7 Philipp <philippwrann at gmx.at>:
> In Extbase 1.3 you may use Classnames like Tx_ExtensionName_Domain_
> Validation_SomeValidator.
> That Class needs to exist in ext/Classes/Domain/Validation/SomeValidator.php
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



-- 
christian wolff - webdeveloper, tech-loving geek and typo3 enthusiast
telefon: +49 30 347 244 88
mobil:  +49 179 49 44 758
email: chris at connye.com
adresse: friedelstraße 31 - 12047 berlin

xing-profil: http://www.xing.com/profile/Christian_Wolff43
google+: https://plus.google.com/u/0/115669673917212236875/posts?hl=de
facebook: https://www.facebook.com/1stMachine
flattr: https://flattr.com/profile/1stmachine


More information about the TYPO3-project-typo3v4mvc mailing list