[TYPO3-mvc] own widget.paginate and f.widget.paginate throws error
Franz Koch
typo3.RemoveForMessage at elements-net.de
Sat Jun 18 02:07:49 CEST 2011
Hey Johannes,
> The Address-Model is fine - all properties, getters and setters
>
> The setup.txt looks like this:
> plugin.tx_enzteaserlist.persistence.classes {
> Tx_EnzTeaserlist_Domain_Model_Address {
> mapping {
> tableName = tt_address
> recordType = Tx_EnzTeaserlist_Domain_Model_Address
> columns {
> tt_address_hook_lng.mapOnProperty = lon
> tt_address_hook_lat.mapOnProperty = lat
> }
> }
> }
> }
If you don't make use of Single-Table-Inheritance (the type field), just
drop the "recordType" setting.
> The TCA of Address begins like this:
> $TCA['tx_enzteaserlist_domain_model_address'] = array(
...
>
> I've added to ext_tables.php
> t3lib_div::loadTCA('tt_address'); nothing more - should I?
>
> I think it should work, or?
you don't have to define your own TCA definition for
'tx_enzteaserlist_domain_model_address' if you're mapping your model to
'tt_address', because in that case the tt_address TCA will be used.
Have you checked in the TS objectBrowser if your plugin configuration
with the class mapping is actually there on the page containing your
plugin? Also don't forget to clear the cache in order to apply the TS.
Another thing you could try is to not just define the class mapping in
your plugins namespace, but the global Extbase namespace
(config.tx_extbase.persistence) - but that's only needed if you also
make use of your model from other extensions.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list