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

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

railroad/doctrine-array-hydrator
================================

 An array to entity hydrator for Doctrine 2 entities

v3.0.0(1y ago)077.8k3MITPHPPHP ^8.2

Since Jan 16Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (19)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) [![Code Climate](https://camo.githubusercontent.com/2ca246a07412277cb35579baae2faa34ddc0532a965b1bee9fdba0d60fdd701a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f6261646765732f6770612e737667)](https://codeclimate.com/github/pmill/doctrine-array-hydrator) [![Test Coverage](https://camo.githubusercontent.com/1c0c41b299c93d69aca6011075682cdbba6c1c320be5879a95033552305ec1ff/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/pmill/doctrine-array-hydrator/coverage) [![Test Coverage](https://camo.githubusercontent.com/c1ed0984d940272a07d009627eb058d75fc6cfe210b88d6338b952c3d5be3d6b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706d696c6c2f646f637472696e652d61727261792d6879647261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pmill/doctrine-array-hydrator/)

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:

```
