- database
- PHP Version >= 5.4.28
- PHP intl extension
$ cd DIR_PROJECT
$ composer require pchela/events:dev-master
Fill the specified db parameters
//DIR_PROJECT/config/autoload/local.php
return array(
'doctrine' => array(
'connection' => array(
// default connection name
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => array(
'host' => 'DBHOST',
'port' => 'DBPORT',
'user' => 'DBUSER',
'password' => 'USERPASSWORD',
'dbname' => 'DBNAME',
)
)
)
),
);
Enable modules in application.config.php
return array(
'modules' => array(
// other modules
'DoctrineModule',
'DoctrineORMModule',
'Events',
),
// other content
);
Create db schema
$ cd DIR_PROJECT
$ php vendor/bin/doctrine-module orm:schema-tool:create