Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Doctrine ORM service provider extension for Silex
PHP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/Mparaiso
tests
.gitignore
LICENSE
README.md
SYMFONY LICENSE
composer.json
composer.lock
phpunit.xml

README.md

Doctrine ORM Service Provider

Doctrine ORM silex extension

author : M.Paraiso contact: mparaiso@online.fr

status: work in progress

helps use Doctrine ORM with silex

Configuration

here is a configuration exemple for silex:

$app->register(new DoctrineServiceProvider,array(
        "db.options"=> array(
            "dbname"   =>  getenv("DBNAME"),
            "user"     => getenv("USER"),
            "password" => getenv("PASSWORD"),
            "host"     => getenv("_HOST"),
            "driver"   => "pdo_mysql",
)));
$app->register(new DoctrineORMServiceProvider(), array(
    "em.logger" => function($app) { /** optional use a logger to log requests **/
        return new MonologSQLLogger($app["logger"]);
    },
    "em.metadata" => array(
        "type" => "annotation",
        "path" => array(__DIR__ ."/Ribbit/Entity/"),
        ),
    "em.proxy_dir" => dirname(__DIR__)."/cache",
    "em.is_dev_mode" => $app["debug"]
    ));
Something went wrong with that request. Please try again.