[TYPO3-dev] Relation of type 'inline' in extbase
Jost Baron
jost.baron at gmx.de
Mon Jul 28 00:35:33 CEST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I've got a domain object location, and want other objects of multiple
types to have a location.
So I defined an entity location, and for each other entity x that can
have a location, I created a table
CREATE TABLE tx_myext_x_location_mm (
uid_local int(11) DEFAULT '0' NOT NULL,
uid_foreign int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
);
and added a field
location int(11) DEFAULT '0' NOT NULL
to the sql definitions of for entity x. The TCA-configuration of that
field looks like this:
'location' => array(
'label' => $lll . 'pointofsale_location_label',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_myext_domain_model_location',
'MM' => 'tx_myext_x_location_mm',
'maxitems' => '1',
'minitems' => '1',
),
),
The mm-table has no TCA configuration
When I edit an object of type x in extbase, and add a location to it
(created with the next available object manager), I get the error
message "Unknown column 'uid_local' in 'field list'". I have found out
that the table this error message concerns is the location table, but
have not come much further.
There are no problems when I add a location in the backend.
Why does this happen, whats the problem? How could I debug this better?
Thanks,
Jost
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlPVfrUACgkQNme/yCvmvTKvJgCfbLYTjrJu4NS/K2OFWmRoyI7H
cdwAnRdJXehmEDwYPzQovdl8U0SkiV1w
=c+U/
-----END PGP SIGNATURE-----
More information about the TYPO3-dev
mailing list