PHPackages                             raztud/doctrine-orm-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. raztud/doctrine-orm-provider

ActiveLibrary[Database &amp; ORM](/categories/database)

raztud/doctrine-orm-provider
============================

Simple Doctrine ORM provider for Silex

1.0.1(11y ago)020MITPHP

Since Sep 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/raztud/silex-orm-provider)[ Packagist](https://packagist.org/packages/raztud/doctrine-orm-provider)[ Docs](https://github.com/raztud/silex-orm-provider.git)[ RSS](/packages/raztud-doctrine-orm-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Doctrine ORM Service Provider for Silex
=======================================

[](#doctrine-orm-service-provider-for-silex)

This provider sets up Doctrine ORM for Silex.

Summary:

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)

Installation
------------

[](#installation)

Add the bundle to your composer.json

```
{
    "require": {
        ...
        "raztud/doctrine-orm-provider": "1.0.0"
    }
}
```

Tell to composer to download the bundle by running the command:

```
$ php composer.phar update raztud/doctrine-orm-provider
```

Composer will install the bundle to your project's `vendor/raztud` directory.

Configuration
-------------

[](#configuration)

First of all you should have the Doctrine DBAL connection configured. For more information about configuring the DoctrineServiceProvider, I'd recommend reading [this page of the Silex documentation](http://silex.sensiolabs.org/doc/providers/doctrine.html).

Registering the Doctrine ORM Service Provider is rather straight forward:

```
