PHPackages                             hamichen/laminas-doctrine-orm - 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. hamichen/laminas-doctrine-orm

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

hamichen/laminas-doctrine-orm
=============================

Simple Laminas/Mezzio Doctrine ORM integration

1.0.1(3y ago)012BSD-3-ClausePHPPHP ^8.1 || ^8.0 || ^7.4

Since Aug 23Pushed 3y agoCompare

[ Source](https://github.com/hamichen/laminas-doctrine-orm)[ Packagist](https://packagist.org/packages/hamichen/laminas-doctrine-orm)[ RSS](/packages/hamichen-laminas-doctrine-orm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Laminas Doctrine ORM
====================

[](#laminas-doctrine-orm)

Simple Laminas/Mezzio Doctrine ORM integration.

Please feel free to report bugs and missing features.

Using
=====

[](#using)

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

[](#configuration)

Create config file `config/autoload/doctrine.global.php` with minimal config:

- `doctrine` - Key for doctrine config
    - `connection`
        - `orm_default`
            - `driver_class` - Full name of `\Doctrine\DBAL\Driver` implementation
            - `params` - Driver parameters
    - `driver` - Mapping driver configuration
        - `orm_default`
            - `drivers`
                - Key must be a namespace for entities (e.g. `App\Entity`)
                    - `class` - Full name of `MappingDriver`
                    - `paths` - Array of directories with entities

See [Doctrine documentation](https://www.doctrine-project.org/projects/doctrine-dbal/en/2.7/reference/configuration.html)for more possible configurations.

### Example

[](#example)

```
