PHPackages                             netvlies/doctrinebridgebundle - 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. netvlies/doctrinebridgebundle

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

netvlies/doctrinebridgebundle
=============================

242442[1 issues](https://github.com/netvlies/DoctrineBridgeBundle/issues)PHP

Since Jul 26Pushed 12y ago13 watchersCompare

[ Source](https://github.com/netvlies/DoctrineBridgeBundle)[ Packagist](https://packagist.org/packages/netvlies/doctrinebridgebundle)[ RSS](/packages/netvlies-doctrinebridgebundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Netvlies DoctrineBridge
=======================

[](#netvlies-doctrinebridge)

This bundle provides a bridge functionality between different doctrine managers. The bridge functionality makes it possible to make interlinked relations between an entity and a document (and vice versa) using annotations. An example for a document:

```
use Netvlies\Bundle\DoctrineBridgeBundle\Mapping\Annotations as BRIDGE;

/**
 *
 * @PHPCRODM\Document(referenceable=true)
 */
class MyPage
{
     * @PHPCRODM\String
     * @BRIDGE\Entity(targetEntity="MyBundle:Media", entityManager="default")
     */
    protected $media;

```

And vice versa

```
use Netvlies\Bundle\DoctrineBridgeBundle\Mapping\Annotations as BRIDGE;

/**
 * @ORM\Table()
 * @ORM\Entity
 */
class OrderLine
{
     * @ORM\Column(name="product", type="string", length=255)
     * @BRIDGE\Document(targetDocument="MyBundle:Product", documentManager="default")
     */
    private $product;

```

Using this annotation, it will load a reference object when retrieved, and will be resolved from storage engine when asked for. Also when assigned and saved it will store the UID from the other side, so it can be resolved when retrieved again.

TODO
====

[](#todo)

- There are no tests yet. The bundle is quite simple now, but with further development tests should be added and checked in Travis
- Currently it only supports x-to-one relations. So this is must be added later on to have at least support for one-to-many relations.
- Currently it has only support ORM and PHPCR. So support for mongoDB and/or other storage engines might be added in the future.

Installation
============

[](#installation)

You can either use composer or include it into your deps file. For composer:

```
"netvlies/doctrinebridgebundle": "dev-master",

```

Deps file

```
[doctrineBridgeBundle]
git=http://github.com/netvlies/DoctrineBridgeBundle.git

```

After that you need to add following line to your autoload.php and change the path accordingly (if needed)

```
AnnotationRegistry::registerFile(__DIR__.'/../vendor/netvlies/doctrinebridge/Netvlies/Bundle/DoctrineBridgeBundle/Mapping/Annotations/DoctrineAnnotations.php');

```

And dont't forget it to include into your AppKernel.php

```
new Netvlies\Bundle\DoctrineBridgeBundle\NetvliesDoctrineBridgeBundle(),

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab0196c8ccc7f9ff9fb4aef4298a9510c079d119a58ec09053c3cf52571053dd?d=identicon)[mdekrijger](/maintainers/mdekrijger)

---

Top Contributors

[![hacfi](https://avatars.githubusercontent.com/u/428841?v=4)](https://github.com/hacfi "hacfi (1 commits)")[![sjopet](https://avatars.githubusercontent.com/u/881246?v=4)](https://github.com/sjopet "sjopet (1 commits)")

### Embed Badge

![Health badge](/badges/netvlies-doctrinebridgebundle/health.svg)

```
[![Health](https://phpackages.com/badges/netvlies-doctrinebridgebundle/health.svg)](https://phpackages.com/packages/netvlies-doctrinebridgebundle)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
