[TYPO3-mvc] Property / relation problem

Claus Due claus at wildside.dk
Fri Feb 3 13:13:45 CET 2012

Hi Alex,

> I have now created a table tx_xxx_domain_model_staticcountry (copied the structure from static_countries) and added proper TCA configuration for it.
> The error persists.

My bugfixing sense says "show us the TCA for the column on your parent object that points to the Country"... and to try manually testing if you can 1) create an instance of your Country then 2) setCountr($country) on your intended object and 3) persist that object - if the DB contents are incorrect here we should look for the cause in either TCA, TS mapping info or other cannot-get-TS issues that could rise from the context you are in.

If your context is any other than rendering a plugin through a Web Request let us know which :)

> Doesn't extbase use the TCA from static_countries when I map the model to this table? ( Tx_Xxx_Domain_Model_StaticCountry.mapping.tableName = static_countries )

Yes, it does - but perhaps more is necessary to enable it or perhaps some other circumstance is causing the TS to not be read. I admit never doing this type of relation - I've only worked with extending the FrontendUser and FrontendUserGroups, never mapping a non-standard TYPO3 table to a standard Extbase Model...

> EXT extbase_staticinfotables does not help me out in this case. It only contains 1 Country model and has the same mapping to static_countries than I do in my extension.

But perhaps the manual has a step-by-step how to integrate in your own models, which you could check to see if you missed something. Perhaps you could use that ext as a reference for TS, TCA etc.?


More information about the TYPO3-project-typo3v4mvc mailing list