/DoctrineModule

Zend Framework 2 Module for Doctrine

Primary LanguagePHPMIT LicenseMIT

DoctrineModule for Laminas

Build Status Code Coverage Latest Stable Version Total Downloads

DoctrineModule provides basic functionality consumed by DoctrineORMModule (if you want to use Doctrine ORM) and DoctrineMongoODMModule (if you want to use Doctrine MongoDB ODM).

Installation

Run the following to install this library using Composer:

composer require doctrine/doctrine-module

Note on PHP 8.0 or later

This module 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-module": "^4.2.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.