这是我的TCA:
tx_csblog_tags' => [
'exclude' => 0,'label' => 'LLL:EXT:cs_blog/Resources/Private/Language/locallang_db.xlf:tx_csblog_domain_model_post.tags','config' => [
'type' => 'select','renderType' => 'selectMultipleSideBySide','foreign_table' => 'tx_csblog_domain_model_tag','foreign_table_where' => ' ORDER BY tx_csblog_domain_model_tag.title ASC','MM' => 'tx_csblog_post_tag_mm','MM_match_fields' => [
'tablenames' => 'pages','fieldname' => 'tx_csblog_tags'
],'nultiple' => 0,'size' => 10,'autoSizeMax' => 30,'minitems' => 0,'maxitems' => 9999,
所选项目正确存储在数据库表tx_csblog_post_tag_mm中,例如
uid_local uid_foreign sorting sorting_foreign tablenames fieldname
143 18 1 0 pages tx_csblog_tags
如果我保存记录,则所选项目将以这种方式存储在数据库中,但不会再次显示为所选状态。因此,如果我再次保存,关系将消失。
我错过了什么吗?还是无法使用这样的MM_match_fields?