[TYPO3-mvc] Little Problem with Extbase Extension in Typo3

Stefan Kruse besucher80 at gmx.de
Mon Jun 17 13:04:43 CEST 2013


HI, ok i try to explain my problem better, because I don't find a solution.
I call my controller / Action with this:

 

?tx_tl24_pi1[controller]=Suggest&tx_tl24_pi1[action]=product

 

And then sometimes I get a response like:

 

[Bahnspedition,LKW-Spedition,Seefracht-Spedition,Container]

 

And sometimes like:

 

[null,null,null,null].

 

The thing is that the 4 entries are found in the database, but the values
are not set.

 

 

The Debug-Output looks like:

 

object(SK\Tl24\Domain\Model\Subcategory)#209 (9) { ["name":protected]=> NULL
["maincategory":protected]=> NULL ["company":protected]=> NULL
["uid":protected]=> int(1) ["_localizedUid":protected]=> int(1)
["_languageUid":protected]=> NULL ["pid":protected]=> int(2)
["_isClone":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=>
bool(false)
["_cleanProperties":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":pr
ivate]=> array(5) { ["name"]=> NULL ["maincategory"]=> NULL ["company"]=>
NULL ["uid"]=> int(1) ["pid"]=> int(2) } }
object(SK\Tl24\Domain\Model\Subcategory)#210 (9) { ["name":protected]=> NULL
["maincategory":protected]=> NULL ["company":protected]=> NULL
["uid":protected]=> int(2) ["_localizedUid":protected]=> int(2)
["_languageUid":protected]=> NULL ["pid":protected]=> int(2)
["_isClone":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":private]=>
bool(false)
["_cleanProperties":"TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject":pr
ivate]=> array(5) { ["name"]=> NULL ["maincategory"]=> NULL ["company"]=>
NULL ["uid"]=> int(2) ["pid"]=> int(2) } }

 

The Uid and Pid is right, but why are the fields all null like name? When I
clear the the cache then the values are correct and set. I have no idea what
this could be. The storagePid is set too and have the correct value.

 

Need really a little help. Thanks Stefan.



More information about the TYPO3-project-typo3v4mvc mailing list