[TYPO3-mvc] Record Relation to tt_content
Matthias Krappitz
matthias at nospam.aemka.de
Thu Jul 28 10:04:04 CEST 2011
>> Classes/Domain/Model/Project.php:
>
> Make sure you have required functions setup like:
>
> $this->initStorageObjects();
> ...
This was in place.
>> Typoscript:
>>
>> plugin.tx_nhb {
>> persistence {
>> classes {
>> Tx_Nhb_Domain_Model_Content {
>> mapping {
>> tableName = tt_content
>> recordType = Tx_Nhb_Domain_Model_Content
>> columns {
>> }
>> }
>> }
>> }
>> }
>> }
>>
>
> If you are setting the recordType in above TS then you must have a field
> defined by $TCA['tt_content']['ctrl']['type'] in tt_content which in
> your case is already present "CType".
>
> So you just need to set the value of this field (tt_content.CType) to
> 'Tx_Nhb_Domain_Model_Content' and then hopefully it should work OR
> remove the recordType setting from above TS ;)
>
> Hope it helps
Thank you a thousand times!!! It worked fine, when I removed the recordType
Configuration from TS. I once again read the page in the book by Jochen Rau
two times more and now I fully understand what the record type setting is
all about.
Hope to return the favor some time soon!
Matthias
More information about the TYPO3-project-typo3v4mvc
mailing list