Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.37 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.37 KB

newsletter

A quick build to try out and figure out how to implement the ibrose newsletter bundle. before including it in portal.

Create the databases

mandants are used to provide seperate databases for clients/organisations.

# create the empty databases
$ app/console doctrine:database:create
$ app/console doctrine:database:create --connection=mandantA
$ app/console doctrine:database:create --connection=mandantB

# create the database schemas
$ php app/console doctrine:schema:create --em default
$ php app/console doctrine:schema:create --em mandantA
$ php app/console doctrine:schema:create --em mandantB

# enable the mandants (insert them in the defined database - already existings will be ignored)
$ php app/console ibrows:newsletter:mandants:enable

register three new users by using the web interface

http://yoururl.com/web/register

Connect a user (e.g. FOSUser) from the default connection with a mandant

    use newsletter;
    UPDATE `fos_user` SET mandant = "default" WHERE username = "YourUsername";
    UPDATE `fos_user` SET mandant = "mandantA" WHERE username = "YourUsernameA";
    UPDATE `fos_user` SET mandant = "mandantB" WHERE username = "YourUsernameB";

ToDo