首页 > 解决方案 > TYPO3 Extbase FE form - how to remove/delete inline relation

问题描述

I have a complex custom Extbase Database on which I am doing a frontend (FE) editor with subtables. With the propertyMappingConfiguration allowCreationForSubProperty I was able to implement an easy way for the user to add new sub-records in M:n relation.

Now my question is how can I implement a deletion of those records? Simply removing the properties from the FORM (in my case removing tx_jobfinder_jobanzeige[jobanzeige][sprachkenntnisse][2][niveau]) from the html-form does obviously not trigger a delete event for this sub-table entry.

Is there a way to automatically trigger it via extbase? How would I implement that? Setting tx_jobfinder_jobanzeige[jobanzeige][sprachkenntnisse][2] to null or how would that be possible?

标签: frontendtypo3extbase

解决方案


以防有人遇到同样的问题或询问这是如何完成的。我发现了隐藏的问题。在编辑表单中,用户可以删除这样的连接,并通过 javascript 我删除选择但您还必须删除隐藏字段 [__identity] - 然后通过级联 Extbase 自动更新对象,所有内容都将正确保存。


推荐阅读