acelaya / doctrine-enum-type

A custom Doctrine type that maps column values to enum objects using myclabs/php-enum
MIT License
132 stars 15 forks source link

Added support for null values in the database. #2

Closed maxbrokman closed 8 years ago

maxbrokman commented 8 years ago

Sometimes database results may bring back NULL results, either because the property is nullable or as a result of an empty left join. In this case entities will be hydrated with null, rather than failing due to an invalid enum type.

This will resolve #1

acelaya commented 8 years ago

Looks good. Thanks for your contribution!