PHPackages                             pmill/doctrine-array-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. pmill/doctrine-array-hydrator

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

pmill/doctrine-array-hydrator
=============================

 An array to entity hydrator for Doctrine 2 entities

v0.1.7(6y ago)36482.9k↓19.8%13[3 issues](https://github.com/pmill/doctrine-array-hydrator/issues)[1 PRs](https://github.com/pmill/doctrine-array-hydrator/pulls)3MITPHPCI failing

Since Nov 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/pmill/doctrine-array-hydrator)[ Packagist](https://packagist.org/packages/pmill/doctrine-array-hydrator)[ Docs](https://github.com/pmill/doctrine-array-hydrator)[ RSS](/packages/pmill-doctrine-array-hydrator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (3)

Doctrine Array to Entity Hydrator
=================================

[](#doctrine-array-to-entity-hydrator)

Introduction
------------

[](#introduction)

[![Build Status](https://camo.githubusercontent.com/f37f3ece482660dba50e6136a6585adb959e5639aa18ed4260bfa6885bad6701/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f706d696c6c2f646f637472696e652d61727261792d6879647261746f722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/pmill/doctrine-array-hydrator) [![Test Coverage](https://camo.githubusercontent.com/c1ed0984d940272a07d009627eb058d75fc6cfe210b88d6338b952c3d5be3d6b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pmill/doctrine-array-hydrator/) [![Downloads](https://camo.githubusercontent.com/94c547f119614b0e40c3166bc7e95e98e7053de0b9492e8b74b9eaa9f0c51315/68747470733a2f2f706f7365722e707567782e6f72672f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f646f776e6c6f616473)](https://camo.githubusercontent.com/94c547f119614b0e40c3166bc7e95e98e7053de0b9492e8b74b9eaa9f0c51315/68747470733a2f2f706f7365722e707567782e6f72672f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f646f776e6c6f616473)

A hydrator for doctrine 2 that converts an array to the entity of your choice.

Installing via Composer
-----------------------

[](#installing-via-composer)

The recommended way to install is through [Composer](http://getcomposer.org).

```
composer require pmill/doctrine-array-hydrator

```

Example
-------

[](#example)

Given this doctrine entity:

```
