PHPackages                             zenify/doctrine-methods-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. [Database &amp; ORM](/categories/database)
4. /
5. zenify/doctrine-methods-hydrator

Abandoned → [arachne/entity-loader](/?search=arachne%2Fentity-loader)Library[Database &amp; ORM](/categories/database)

zenify/doctrine-methods-hydrator
================================

Hydrates presenter methods from parameters to entities

v5.1.1(10y ago)133.0k1MITPHPPHP &gt;=5.6

Since Jun 19Pushed 10y ago6 watchersCompare

[ Source](https://github.com/deprecated-packages/DoctrineMethodsHydrator)[ Packagist](https://packagist.org/packages/zenify/doctrine-methods-hydrator)[ RSS](/packages/zenify-doctrine-methods-hydrator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (7)Versions (21)Used By (0)

Doctrine Methods Hydrator
=========================

[](#doctrine-methods-hydrator)

[![Build Status](https://camo.githubusercontent.com/01323088e2a036c319e9aefa42b2e21662519e4f9c81c5903ce89233ebeea272/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5a656e6966792f446f637472696e654d6574686f64734879647261746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Zenify/DoctrineMethodsHydrator)[![Quality Score](https://camo.githubusercontent.com/fd3e2e2d2ad7a5fb9a21de6ae78d3826b0a8472fc16c3911886c74a012932edc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5a656e6966792f446f637472696e654d6574686f64734879647261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Zenify/DoctrineMethodsHydrator)[![Code Coverage](https://camo.githubusercontent.com/eb37788bb383829c96bc4a359a2dd35e1d6de8b41d75d34fb480344749574f2d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5a656e6966792f446f637472696e654d6574686f64734879647261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Zenify/DoctrineMethodsHydrator)[![Downloads](https://camo.githubusercontent.com/b9788fec51c6cce2f6b9c1e5625b93e17d118e988d1ae62507c43a835096d364/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a656e6966792f646f637472696e652d6d6574686f64732d6879647261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zenify/doctrine-methods-hydrator)[![Latest stable](https://camo.githubusercontent.com/ebd675e7811f9775382f8ff7599f975258d30d93a790e0e45088b36ea6098437/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a656e6966792f646f637472696e652d6d6574686f64732d6879647261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zenify/doctrine-methods-hydrator)

Install
-------

[](#install)

```
$ composer require zenify/doctrine-methods-hydrator
```

Register the extension in `config.neon`:

```
extensions:
	- Zenify\DoctrineMethodsHydrator\DI\MethodsHydratorExtension

	# Kdyby\Doctrine or another Doctrine to Nette implementation
```

The goal of this extension is to enhance native `tryCall` method of `Control` to hydrate parameters of called methods. All `render*`, `action*` and `handle*` methods are hydrated, if entity class typehint is present if args definition.

Usage
-----

[](#usage)

Use in presenter looks like this:

```
class Presenter extends Nette\Application\UI\Presenter
{

	/**
	 * @inject
   	 * @var Zenify\DoctrineMethodsHydrator\Contract\MethodsHydratorInterface
   	 */
   	public $methodsHydrator;

	/**
	 * @param string $method
	 * @param array $parameters
	 * @return bool
	 */
	protected function tryCall($method, array $parameters)
	{
		return $this->methodsHydrator->hydrate($method, $parameters, $this);
	}

}
```

For `Control`, you can use constructor or `@inject` with help of [DecoratorExtension](http://api.nette.org/2.3/Nette.DI.Extensions.DecoratorExtension.html).

### Use Case

[](#use-case)

In template

```
Product detail
```

In presenter

```
class SomePresenter extends Presenter
{

	public function actionDetail(App\Entities\Product $product)
	{
		dump($product); // "App\Entities\Product" object
	}

}
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~26 days

Recently: every ~80 days

Total

20

Last Release

3894d ago

Major Versions

v1.0.6 → v2.0.02014-08-31

v2.0.4 → v3.0.02014-10-12

v3.0.1 → v4.0.02014-11-24

v4.0.0 → v5.0.02014-12-17

PHP version history (3 changes)v1.0.0PHP &gt;=5.4

v5.0.0PHP &gt;=5.5

v5.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

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

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (30 commits)")[![Olicek](https://avatars.githubusercontent.com/u/2891953?v=4)](https://github.com/Olicek "Olicek (4 commits)")

### Embed Badge

![Health badge](/badges/zenify-doctrine-methods-hydrator/health.svg)

```
[![Health](https://phpackages.com/badges/zenify-doctrine-methods-hydrator/health.svg)](https://phpackages.com/packages/zenify-doctrine-methods-hydrator)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)

PHPackages © 2026

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