gorg/trigger-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gorg/trigger-bundle

Composer 安装命令:

composer require gorg/trigger-bundle

包简介

An Bundle to listen envent and serialize it into other db (for replication use)

README 文档

README

Configure the bundle to listen on event like this

Create an event inherit from Event/TriggerEvent

gorg_replication_trigger: pdo_connections: platal: dsn: %g6dat_db_dsn% user: %g6dat_db_user% password: %g6dat_db_password% trigger: pla_accounts: entityManager: platal type: pdoSingleRaw event: "gram.account.change" config: new: "INSERT INTO accounts (hruid, type, is_admin, state, full_name, directory_name, display_name, lastname, firstname, sex, password, email, registration_date) VALUES (:hruid, 'gadz', 0, :enable, CONCAT_WS(' ',:firstname, :lastname), CONCAT_WS(' ', :lastname, :firstname), :firstname, :lastname, :firstname, 'male', :password, :email, NOW())" update: "UPDATE accounts SET state=:enable, full_name=CONCAT_WS(' ',:firstname, :lastname), directory_name=CONCAT_WS(' ', :lastname, :firstname), firstname=firstname, lastname=:lastname, password=:password, email=:email WHERE hruid=:hruid" remove: "DELETE FROM accounts WHERE hruid=:hruid" mapping: hruid: hruid password: password firstname: firstname lastname: lastname enable: enable email: email

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL
  • 更新时间: 2013-02-08