Download the PHP package mparaiso/doctrineormserviceprovider without Composer
On this page you can find all versions of the php package mparaiso/doctrineormserviceprovider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mparaiso/doctrineormserviceprovider
More information about mparaiso/doctrineormserviceprovider
Files in mparaiso/doctrineormserviceprovider
Download mparaiso/doctrineormserviceprovider
More information about mparaiso/doctrineormserviceprovider
Files in mparaiso/doctrineormserviceprovider
Vendor mparaiso
Package doctrineormserviceprovider
Short Description Doctrine ORM for Silex
License MIT
Homepage https://github.com/Mparaiso/doctrineormserviceprovider
Package doctrineormserviceprovider
Short Description Doctrine ORM for Silex
License MIT
Homepage https://github.com/Mparaiso/doctrineormserviceprovider
Please rate this library. Is it a good library?
Informations about the package doctrineormserviceprovider
Doctrine ORM Service Provider
Doctrine ORM silex extension
author : M.Paraiso contact: [email protected]
status: work in progress
helps use Doctrine ORM with silex
Configuration
here is a configuration exemple for silex:
$app->register(new ConsoleServiceProvider); // to manage entities through command line.
$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(
"orm.driver.configs" => array(
"default" => array(
"namespace"=>"Entity", // rootnamespace of your entities
"type" => "yaml", // driver type (yaml,xml,annotation)
"paths" => array(__DIR__ . '/doctrine'), // config file path
)
)
));
Services :
- orm.em : EntityManager
- orm.manager_registry : Manager registry
FEATURES
Date Function
exemple : select j from Job j where j.createdAt = date("2008-12-26")
FixtureLoader
load fixtures from a yaml file
Usage
given the following yaml file :
/*
All versions of doctrineormserviceprovider with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
mparaiso/consoleserviceprovider Version *@dev
silex/silex Version *@dev
doctrine/orm Version 2.*
symfony/doctrine-bridge Version 2.*
mparaiso/consoleserviceprovider Version *@dev
silex/silex Version *@dev
doctrine/orm Version 2.*
symfony/doctrine-bridge Version 2.*
The package mparaiso/doctrineormserviceprovider contains the following files
Loading the files please wait ....