PHPackages                             mapado/doctrine-blender-bundle - 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. mapado/doctrine-blender-bundle

AbandonedArchivedLibrary

mapado/doctrine-blender-bundle
==============================

Bundle in change of the mapado/doctrine-blender package configuration

v0.4.1(10y ago)16.3k[1 issues](https://github.com/mapado/doctrine-blender-bundle/issues)MITPHP

Since Sep 1Pushed 8y ago10 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (0)

Doctrine Blender Bundle
=======================

[](#doctrine-blender-bundle)

This bundle in charge of the  integration into a Symfony project.

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

[](#installation)

```
composer require "mapado/doctrine-blender-bundle:0.*"
```

Usage
-----

[](#usage)

### Entities

[](#entities)

Taken from [doctrine mongodb documentation](http://doctrine-mongodb-odm.readthedocs.org/en/latest/cookbook/blending-orm-and-mongodb-odm.html#define-entity)

First lets define our Product document:

```
/** @Document */
class Product
{
    /** @Id */
    private $id;

    /** @String */
    private $title;

    public function getId()
    {
        return $this->id;
    }

    public function getTitle()
    {
        return $this->title;
    }

    public function setTitle($title)
    {
        $this->title = $title;
    }
}
```

Next create the Order entity that has a $product and $productId property linking it to the Product that is stored with MongoDB:

```
namespace Entities;

use Documents\Product;

/**
 * @Entity
 * @Table(name="orders")
 */
class Order
{
    /**
     * @Id @Column(type="integer")
     * @GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @Column(type="string")
     */
    private $productId;

    /**
     * @var Documents\Product
     */
    private $product;

    public function getId()
    {
        return $this->id;
    }

    public function getProductId()
    {
        return $this->productId;
    }

    public function setProduct(Product $product)
    {
        $this->productId = $product->getId();
        $this->product = $product;
    }

    public function getProduct()
    {
        return $this->product;
    }
}
```

### Configuration

[](#configuration)

```
mapado_doctrine_blender:
    doctrine_external_associations:
        order:
            source_object_manager: 'doctrine.orm.order_entity_manager'
            classname: 'Acme\DemoBundle\Entity\Order'
            references:
                product: # this is the name of the property in the source entity
                    reference_id_getter: 'getProductId' # optional, method in the source entity fetching the ref.id
                    reference_setter: 'setProduct' # optional, method in the source entity to set the reference
                    reference_object_manager: 'doctrine_mongodb.odm.product_document_manager'
                    reference_class: 'Acme\DemoBundle\Document\Product'

                tags: # can also be an array (or an iterator)
                    reference_id_getter: 'getTagIds' # must return an array (or an iterator) of identifiers
                    reference_setter: 'setTags'
                    reference_object_manager: 'doctrine_mongodb.odm.tag_document_manager'
                    reference_class: 'Acme\DemoBundle\Document\Tag'

                another_reference:
                    # ...

        another_source:
            # ...
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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.

###  Release Activity

Cadence

Every ~147 days

Total

5

Last Release

3687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3277986d0e1f93c7e8a58fdaf1b52e3f5a1588e73dfa298d33aafb1ebbde5ef2?d=identicon)[jdeniau](/maintainers/jdeniau)

![](https://www.gravatar.com/avatar/90d135128b469dc38fcf186ac78d0f2cd82fc696ffcf5be8a8c486b7bd911ff6?d=identicon)[mapado](/maintainers/mapado)

---

Top Contributors

[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (12 commits)")[![johndodev](https://avatars.githubusercontent.com/u/2741956?v=4)](https://github.com/johndodev "johndodev (1 commits)")

### Embed Badge

![Health badge](/badges/mapado-doctrine-blender-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mapado-doctrine-blender-bundle/health.svg)](https://phpackages.com/packages/mapado-doctrine-blender-bundle)
```

PHPackages © 2026

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