[TYPO3-german] extbase add new eintrag ohne formular

Cedric Ziel cedric at cedric-ziel.com
Fri Feb 7 15:45:21 CET 2014


  Wenn das deine komplette Action ist, wäre es hilfreich, ein neues Objekt
zu instanziieren, bevor du darauf operierst.

Zitat von arianesardinas <asardinas at gmx.de>:

> Hallo Leute
>
> ich versuche ein neues eintrag in eine tabelle zu speischern. mein
> problem ist, ich nutze kein formular. es sieht so aus:
>
> public function newAction(\TYPO3\JobsDfu\Domain\Model\Occupationcategory
> $newOccupationcategory = NULL) {
>
>        
>
\TYPO3\CMS\Extbase\Reflection\ObjectAccess::setProperty($newOccupationcategory,
'name',
> 'hallo');
> }
> ich dachte es würde gehen. es geht nicht. hat jemand eine idee wie ich
> die Propertys setzen kann?
> vielen dank in voraus!
> _______________________________________________
> TYPO3-german mailing list
>
TYPO3-german at lists.typo3.orghttp://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list