mparaiso/doctrineodmserviceprovider

Doctrine ODM service provider for Silex

0.0.16 2013-09-19 23:25 UTC

This package is not auto-updated.

Last update: 2024-12-16 15:18:30 UTC


README

Build Status

Doctrine ODM service provider for silex

Brings NoSQL databases to Silex Framework.

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

status: work in progress

helps use Doctrine ODM with silex , comes with complete too symfony integration.

supports MongoDB

BASIC USAGE

 $app = new \Silex\Application();
        $app->register(new DoctrineODMMongoDBServiceProvider, array(
            "odm.connection.server" => getenv('ODM_MONGODB_TEST_CONNECTION_STRING'), // mongodb connection string
            "odm.connection.dbname" => getenv('ODM_MONGODB_TEST_DATABASE_NAME'), // dbname
            "odm.connection.options" => array('connect' => TRUE), // connection options
            "odm.proxy_dir" => __DIR__ . "/Proxy", // Proxy dir
            "odm.driver.configs" => array(
                "default" => array(
                    "namespace" => "Entity", // Entity Namespace
                    "path" => __DIR__ . "/Entity", // Entity Directory
                    "type" => "annotations" // Metadata driver ( 'yaml','xml' or 'annotations' )
                )
            )
        ));

CHANGE LOG