承接 wdb/trigger-sort-mm-table 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wdb/trigger-sort-mm-table

Composer 安装命令:

composer require wdb/trigger-sort-mm-table

包简介

This TYPO3 extension includes most relevant TCA configuration to demonstrate and test a MySQL-Trigger.

README 文档

README

This extension includes most relevant TCA configuration to demonstrate and test a MySQL-Trigger.

This is the described problem:

In my extension I have two models team members (parent) and expertise (child). The bidirectional relationsship between the two models is stored in an intermediate table. This works fine bit there is one problem.

When I edit the team member record in the TYPO3 Backend and assign an expertise record to it and then open the corresponding expertise record, the newly assigend team member record is shown at the top of the list instead of at the end. The problem also occurs the other way around.

This is because the sorting respectively sorting_foreign field in the intermediate table is set to its default value (0) when the record is saved.

This is the link to the Stack Overflow question, and this to my answer.

Installation

composer req wdb/trigger-sort-mm-table

To install the trigger look in the file ext_tables_static+adt.sql. It might be possible that it can be installed with TYPO3 in the extension manager, else copy the SQL and execute it in PhpMyAdmin or another DBMS.

The extensionKey is btp and the namespace \WDB\Btp due to the namings in the question on Stack Overflow.

Usage

On any page in the TYPO3 backend you can create Team- and Expertise-records. In each of them you can chose or create some records of the other kind. To monitor what's happening the best is to control in the mm-table in PhpMyAdmin.

These are the tables:

  • tx_btp_domain_model_team
  • tx_btp_domain_model_expertise
  • tx_btp_team_expertise_mm

The table tx_btp_team_expertise_mm includes a debug field that is filled by the trigger with some relevant values when the trigger is active.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固