[TYPO3-mvc] Using foreign_selector in inline TCA configuration, breaking model

"Søren Andersen" hacksaw at zpeed.dk
Tue Mar 26 12:25:21 CET 2013


Hello

I'm writing an extension where an object should be related to multiple
child elements who also have child objects.

In the backend I want to use IRRE to assign children to their parents.
Having built my extension with "Extension builder" it only allowed
completely new objects to be created, but I wanted to relate to existing
objects. So I defined foreign_selector in the TCA of the parent object.

Doing this made everything work nicely in the backend. But it broke the
frontend (beware of cache, I had to have the extension "uncache" installed
to get the errors immediately after changing TCA).

What happened in the frontend was a bit funky. According to the extbase
debugger utility, the parent object was loaded nicely, the child objects
were listed inside the parent as expected, but when expanding a child
object, it was clear that all properties was set to NULL.

Has anyone had any luck using the foreign_selector with inline TCA
configuration using Extbase?

Sincerely,
Søren Andersen



More information about the TYPO3-project-typo3v4mvc mailing list