Skip to content

driehle/DoctrineORMModule

 
 

Repository files navigation

Doctrine ORM Module for Laminas

Build Status Code Coverage Latest Stable Version Total Downloads

The DoctrineORMModule leverages DoctrineModule and integrates Doctrine ORM with Laminas quickly and easily. The following features are intended to work out of the box:

  • Doctrine ORM support
  • Multiple ORM entity managers
  • Multiple DBAL connections
  • Reuse existing PDO connections in DBAL connection

Installation

Run the following to install this library using Composer:

composer require doctrine/doctrine-orm-module

Note on PHP 8.0 or later

DoctrineModule provides an integration with laminas-cache, which currently comes with some storage adapters which are not compatible with PHP 8.0 or later. To prevent installation of these unused cache adapters, you will need to add the following to your composer.json file:

    "require": {
         "doctrine/doctrine-orm-module": "^4.1.0"
    },
    "replace": {
        "laminas/laminas-cache-storage-adapter-apc": "*",
        "laminas/laminas-cache-storage-adapter-dba": "*",
        "laminas/laminas-cache-storage-adapter-memcache": "*",
        "laminas/laminas-cache-storage-adapter-memcached": "*",
        "laminas/laminas-cache-storage-adapter-mongodb": "*",
        "laminas/laminas-cache-storage-adapter-wincache": "*",
        "laminas/laminas-cache-storage-adapter-xcache": "*",
        "laminas/laminas-cache-storage-adapter-zend-server": "*"
    }

Consult the laminas-cache documentation for further information on this issue.

Documentation

Please check the documentation on the Doctrine website for more detailed information on features provided by this component. The source files for the documentation can be found in the docs directory.

About

Doctrine ORM Module for Laminas

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 95.6%
  • HTML 3.7%
  • Shell 0.7%