PHPackages                             api-skeletons/zf-doctrine-module-zend-hydrator - 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. api-skeletons/zf-doctrine-module-zend-hydrator

ActiveLibrary

api-skeletons/zf-doctrine-module-zend-hydrator
==============================================

Corrects DoctrineModule classes to use zend-hydrator

1.0.3(6y ago)4156.5k↓22.4%6MITPHP

Since Jun 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/API-Skeletons/zf-doctrine-module-zend-hydrator)[ Packagist](https://packagist.org/packages/api-skeletons/zf-doctrine-module-zend-hydrator)[ RSS](/packages/api-skeletons-zf-doctrine-module-zend-hydrator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

DoctrineModule zend-hydrator
============================

[](#doctrinemodule-zend-hydrator)

[![Total Downloads](https://camo.githubusercontent.com/48a0e5aaf91184d864f7eb7d841035c99f01eedb18e94601ffcb10c5ba352b96/68747470733a2f2f706f7365722e707567782e6f72672f6170692d736b656c65746f6e732f7a662d646f637472696e652d6d6f64756c652d7a656e642d6879647261746f722f646f776e6c6f616473)](https://packagist.org/packages/api-skeletons/zf-doctrine-module-zend-hydrator)

\*\* This is a Patch Repository \*\*

Since the [zendframework/zend-stdlib](https://github.com/zendframework/zend-stdlib) hydrators were moved into their own repository, [zendframework/zend-hydrator](https://github.com/zendframework/zend-hydrator), the [DoctrineModule](https://github.com/doctrine/DoctrineModule) repository has not been updated to correctly use the new library. Through many discussions on the issue [@doctrineorm](https://twitter.com/doctrineorm) continues to maintain they are in line with [zendframework/zend-hydrator](https://github.com/zendframework/zend-hydrator) because, very unusually, the new library was written to be backwards compatible with [zendframework/zend-stdlib](https://github.com/zendframework/zend-stdlib) but that backwards compatibility was removed from zend-hydrator in later versions leaving developers who want to use Doctrine in their projects which allow for custom hydrators out on a limb.

This library overrides the files from [DoctrineModule](https://github.com/doctrine/DoctrineModule) which are broken because they still reference [zendframework/zend-stdlib](https://github.com/zendframework/zend-stdlib) for their hydrators.

Discussion on this issue:

- Jan 30, 2016: [doctrine/DoctrineModule#548](https://github.com/doctrine/DoctrineModule/pull/548)
- Apr 7, 2016: [doctrine/DoctrineModule#558 (comment)](https://github.com/doctrine/DoctrineModule/pull/558#issuecomment-207212246)

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
$ php composer.phar require api-skeletons/zf-doctrine-module-zend-hydrator ^1.0
```

Inside your `composer.json` file this library must be included **before** [doctrine/doctrine-module](https://github.com/doctrine/DoctrineModule). This ordering allows classes from this repository to override the DoctrineModule classes which are broken.

Installation Warnings
---------------------

[](#installation-warnings)

You may receive the following warnings. These are to be expected and are not a cause for concern.

```
Warning: Ambiguous class resolution, "DoctrineModule\Stdlib\Hydrator\DoctrineObject" was found in both "Projects/phpro/zf-doctrine-hydration-module/vendor/api-skeletons/zf-doctrine-module-zend-hydrator/src/DoctrineObject.php" and "/Projects/phpro/zf-doctrine-hydration-module/vendor/doctrine/doctrine-module/src/DoctrineModule/Stdlib/Hydrator/DoctrineObject.php", the first will be used.
Warning: Ambiguous class resolution, "DoctrineModule\Stdlib\Hydrator\Filter\PropertyName" was found in both "/Projects/phpro/zf-doctrine-hydration-module/vendor/api-skeletons/zf-doctrine-module-zend-hydrator/src/Filter/PropertyName.php" and "/Projects/phpro/zf-doctrine-hydration-module/vendor/doctrine/doctrine-module/src/DoctrineModule/Stdlib/Hydrator/Filter/PropertyName.php", the first will be used.
Warning: Ambiguous class resolution, "DoctrineModule\Stdlib\Hydrator\Strategy\AbstractCollectionStrategy" was found in both "/Projects/phpro/zf-doctrine-hydration-module/vendor/api-skeletons/zf-doctrine-module-zend-hydrator/src/Strategy/AbstractCollectionStrategy.php" and "/Projects/phpro/zf-doctrine-hydration-module/vendor/doctrine/doctrine-module/src/DoctrineModule/Stdlib/Hydrator/Strategy/AbstractCollectionStrategy.php", the first will be used.
```

When to use this Patch Repository
---------------------------------

[](#when-to-use-this-patch-repository)

If you are using custom hydrators for your entities and you see errors like the following, this repository will correct them.

```
Argument 2 passed to Zend\Stdlib\Hydrator\AbstractHydrator::addStrategy() must be an instance of Zend\Stdlib\Hydrator\Strategy\StrategyInterface ...

```

This is a Patch Repository
--------------------------

[](#this-is-a-patch-repository)

If you would like to be involved in the conversation at [DoctrineModule](https://github.com/doctrine/DoctrineModule) to help get [zendframework/zend-hydrator](https://github.com/zendframework/zend-hydrator) implemented correctly in [@doctrineorm](https://twitter.com/doctrineorm) repository you may contribute to the discussions linked above.

Appreciation
------------

[](#appreciation)

Finding this patch would not have been possible without the constant support of [Toon Verwerft](https://github.com/veewee) and his [zf-doctrine-hydration-module](https://github.com/phpro/zf-doctrine-hydration-module). It took nearly six months to find a solution and he supported [my](http://www.tomhanderson.com) efforts the whole time. Thank you Toon!

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~248 days

Recently: every ~310 days

Total

6

Last Release

2388d ago

Major Versions

0.1.1 → 1.0.02016-06-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/49dd7d9dba889ac674b0da447d9c1e69d1128dc3ccbaef98ba83d6ee519fc2d6?d=identicon)[tom\_anderson](/maintainers/tom_anderson)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (16 commits)")[![phaizullin](https://avatars.githubusercontent.com/u/884354?v=4)](https://github.com/phaizullin "phaizullin (1 commits)")

### Embed Badge

![Health badge](/badges/api-skeletons-zf-doctrine-module-zend-hydrator/health.svg)

```
[![Health](https://phpackages.com/badges/api-skeletons-zf-doctrine-module-zend-hydrator/health.svg)](https://phpackages.com/packages/api-skeletons-zf-doctrine-module-zend-hydrator)
```

###  Alternatives

[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M293](/packages/doctrine-doctrine-orm-module)[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

86676.6k35](/packages/doctrine-doctrine-mongo-odm-module)[jordikroon/google-vision

Google Vision Api for PHP (https://cloud.google.com/vision/)

6374.9k1](/packages/jordikroon-google-vision)[zfr/zfr-oauth2-server-module

Zend Framework 2 module for ZfrOAuth2Server

1236.2k1](/packages/zfr-zfr-oauth2-server-module)

PHPackages © 2026

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