PHPackages                             fabiang/doctrine-dynamic - 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. fabiang/doctrine-dynamic

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

fabiang/doctrine-dynamic
========================

Load Doctrine mappings dynamically for your entities by configuration

v2.1.0(1y ago)71.2k2BSD-2-ClausePHPPHP ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

Since Oct 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/fabiang/doctrine-dynamic)[ Packagist](https://packagist.org/packages/fabiang/doctrine-dynamic)[ RSS](/packages/fabiang-doctrine-dynamic/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (3)Dependencies (15)Versions (8)Used By (2)

fabiang/doctrine-dynamic
========================

[](#fabiangdoctrine-dynamic)

Proxy Driver for [Doctrine](http://doctrine-project.org/) which allows you to add custom relations dynamically by configuration.

This is useful if you use foreign entities, which you can't change, but you like to add own relations between them and your entities.

[![Latest Stable Version](https://camo.githubusercontent.com/75b3ff8c138ceec9a145218c7164817cb8b869fb0d104e7ea9828cdaa344aa7d/68747470733a2f2f706f7365722e707567782e6f72672f66616269616e672f646f637472696e652d64796e616d69632f76657273696f6e)](https://packagist.org/packages/fabiang/doctrine-dynamic)[![License](https://camo.githubusercontent.com/2cab5e4fd21db443047d499a4c604bd8fbce9703807747427c9d4ef3490333b1/68747470733a2f2f706f7365722e707567782e6f72672f66616269616e672f646f637472696e652d64796e616d69632f6c6963656e7365)](https://packagist.org/packages/fabiang/doctrine-dynamic)
[![CI](https://github.com/fabiang/doctrine-dynamic/actions/workflows/ci.yml/badge.svg)](https://github.com/fabiang/doctrine-dynamic/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8ea925cb02c5426b8f4a3e89a5591f191264bbb83ca9e3f35c9d6358c3955831/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66616269616e672f646f637472696e652d64796e616d69632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/fabiang/doctrine-dynamic/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/93dce998626e09ce49e5a761fb288fda3b3e7cf28a38d4d2088fc562f9d3380c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66616269616e672f646f637472696e652d64796e616d69632f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/fabiang/doctrine-dynamic/?branch=main)

Features
--------

[](#features)

- Setting all possible relations to entities:
    - OneToOne
    - ManyToOne
    - OneToMany
    - ManyToMany
- Setting repository class

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

[](#installation)

New to Composer? Read the [introduction](https://getcomposer.org/doc/00-intro.md#introduction). Run the following Composer command:

```
$ composer require fabiang/doctrine-dynamic
```

Framework integration
---------------------

[](#framework-integration)

- [Laminas](https://github.com/fabiang/doctrine-dynamic-laminas)

Usage
-----

[](#usage)

```
