MM表格中的TYPO3 crdate字段

MM表格中的TYPO3 crdate字段,typo3,Typo3,我有打字错误37.6.18 # # Table structure for table 'tx_feusersplus_user_service_mm' # CREATE TABLE tx_feusersplus_user_service_mm ( uid_local int(11) unsigned DEFAULT '0' NOT NULL, uid_foreign int(11) unsigned DEFAULT '0' NOT NULL, sorting i

我有打字错误37.6.18

 #
 # Table structure for table 'tx_feusersplus_user_service_mm'
 #
 CREATE TABLE tx_feusersplus_user_service_mm (
    uid_local int(11) unsigned DEFAULT '0' NOT NULL,
    uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
    sorting int(11) unsigned DEFAULT '0' NOT NULL,
    sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,

    KEY uid_local (uid_local),
    KEY uid_foreign (uid_foreign)
 );
这是MM关系的表格。我想将crdate字段添加到此表并使用它。“我可以知道”字段,项目添加时(时间)。可能吗


我可以添加此字段,但如何使用它?如何在模型和流体中获得它

MM表除了与记录的关系外,不能有任何属性

但是,您可以通过添加TCA并将其用作常规外部表而不是MM,将此表升级为常规表。然后名称可以更改为
tx\u feuersplus\u user\u service
。这样,您的关系表可以具有所有常规表字段

如果您在这里使用的是Extbase
ObjectStorage
,则需要将其项目类型更改为新的
UserService
模型。该模型有一个属性
用户
和一个属性
服务
,每个属性都具有所需的域模型


TYPO3中的丰富关系表的一个例子是
sys\u file\u reference
,它基本上只是记录和文件之间的链接,但被明确使用。

如果我理解正确,我应该在TCA中定义这个表tx\u feuser\u service\u mm?我还想使用对象存储,所以我必须在名称中保存mm?是的,您需要该表的TCA,它将mm转换为完整表。不,您不再需要
\u mm
。我将扩展Extbase的答案。