[TYPO3-mvc] Overwriting TCA (fe_users)
Florian Staudacher
florian_staudacher at yahoo.de
Wed Jul 14 01:05:30 CEST 2010
>
>Now that the other relation works, I would like to add another one to
>fe_users.
>This time it is M:N, a "watchlist": a product can be watched by many users
>and one user can watch many products.
>
>...
>
>Tx_Extbase_Persistence_Exception
>Could not determine type of relation for the property "watchlist". This is
>mainly caused by a missing type declaration above the property definition. If
>the PHPDoc comment is there, make sure it starts with "/**" and not just with
>"/*".
>
>...
>
Is it possible I may have encountered a bug here?
I have a table mapping that maps the attributes of fe_users to my properties
in my user-object.
Now, I have added a column for my watchlist to the fe_users table that is
mapped to my 'watchlist' property.
Normally the column is called 'tx_myext_watchlist', but when I name it just
'watchlist' and comment out the mapping, so that the property and the column
have the same name the extbase 'persistence exception' disappears.
Now extbase is able to access the m:m relation and do what it is supposed to.
As far as I understand the whole concept I should be able to do what I am
trying with a mapping, too (otherwise they may be relatively useless).
Also, in the TCA, when I specify config['multiple'] => 1, shouldn't I be able
to add as many of the same relations as I want? Because it seems that
currently only the first relation to be inserted is updated with the new uid.
Also, shouldn't creating a record in a mm-table also add a 'crdate' to said
record? My crdates are all '0'...
Thanks,
Florian
More information about the TYPO3-project-typo3v4mvc
mailing list