[TYPO3-mvc] Get related 1:n object from external class

Henry DoShell digital at dollerschell.de
Wed Nov 13 14:45:50 CET 2013


Hi Gianluca,

thanks for the reply, yes there is a typo in the text, the multi its ok. The properties are in different models:

\DoShell\TouristShared\Domain\Model\Conversionrate $conversionratenum
\DoShell\TouristBbhotel\Domain\Model\Main $roomratenum

Already tried to write an getter, but no luck:
	/**
	* Returns the conversionratenum
	*
	* @return \DoShell\TouristShared\Domain\Model\Conversionrate $conversionratenum
	*/
	public function getConversionratenum() {
        return $this->conversionratenum;
	}

its connected via $conversion rate, in FE its all right:

Extbase Variable Dump
DoShell\TouristShared\Domain\Model\Conversionrateprototypepersistent entity (uid=3, pid=39)
   conversionratenum => 1.2 (double)
   uid => 3 (integer)
   _localizedUid => 3 (integer)modified
   _languageUid => 0 (integer)modified
   pid => 39 (integer)

Thanks,
Henry


More information about the TYPO3-project-typo3v4mvc mailing list