2017 © Pedro Peláez
 

symfony-bundle trigger-bundle

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

image

gorg/trigger-bundle

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

  • Wednesday, February 5, 2014
  • by matgou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Configure the bundle to listen on event like this, (*1)

Create an event inherit from Event/TriggerEvent, (*2)

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, (*3)

The Versions

05/02 2014

dev-master

9999999-dev

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

  Sources   Download

GPL

The Requires

  • php >=5.3.2

 

by Mathieu GOULIN

pdo trigger gorg replication