hm...

ich habe versucht das objekt zu  instanziieren und zwar so:

$repository = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\JobsDfu\Domain\Model\Occupationcategory');

aber ich bekomme ein error: Fatal error: Class '\\TYPO3\JobsDfu\Domain\Model\Occupationcategory' not found
meine ganze action sieht so aus jetzt:

public function newAction(\TYPO3\JobsDfu\Domain\Model\Occupationcategory 
$newOccupationcategory = NULL) {

$repository = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('\TYPO3\JobsDfu\Domain\Model\Occupationcategory');

$repository ->:setProperty($newOccupationcategory, 'name', 'hallo');

}
es geht auch nicht, jemand eine idee?
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an