PHPackages                             php-arsenal/doctrine-odm-enum-type-bundle - 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. php-arsenal/doctrine-odm-enum-type-bundle

AbandonedArchivedSymfony-bundle[Database &amp; ORM](/categories/database)

php-arsenal/doctrine-odm-enum-type-bundle
=========================================

Add custom enum mapping types for your documents.

0.1.1(4y ago)118MITPHPPHP &gt;=8.0

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/php-arsenal/doctrine-odm-enum-type-bundle)[ Packagist](https://packagist.org/packages/php-arsenal/doctrine-odm-enum-type-bundle)[ Docs](https://github.com/php-arsenal/doctrine-odm-enum-type-bundle)[ RSS](/packages/php-arsenal-doctrine-odm-enum-type-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

doctrine-odm-enum-type-bundle
=============================

[](#doctrine-odm-enum-type-bundle)

Add custom enum mapping types for your MongoDB documents in Symfony. Inspired by [doctrine-enum-type](https://github.com/acelaya/doctrine-enum-type) and based on [php-enum](https://github.com/myclabs/php-enum).

`composer require php-arsenal/doctrine-odm-enum-type-bundle`

[![Release](https://camo.githubusercontent.com/7ec8327451e1e9ae516e53415f38cf8c1026b155090b130af1a9f41d8a6ff41b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7068702d617273656e616c2f646f637472696e652d6f646d2d656e756d2d747970652d62756e646c65)](https://github.com/php-arsenal/doctrine-odm-enum-type-bundle/releases)[![CI](https://camo.githubusercontent.com/6bec6717627f4e25e8763de6759a0f329f219404b8cc8381ec1db1fdd2d3df4a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7068702d617273656e616c2f646f637472696e652d6f646d2d656e756d2d747970652d62756e646c652f4349)](https://github.com/php-arsenal/doctrine-odm-enum-type-bundle/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/b3d82663aee8998716666a499efb8f080dffbf9273be9804b11f07ca750b3fd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d617273656e616c2f646f637472696e652d6f646d2d656e756d2d747970652d62756e646c65)](https://packagist.org/packages/php-arsenal/doctrine-odm-enum-type-bundle)

How it works?
=============

[](#how-it-works)

`Enum` classes that extend `MyCLabs\Enum\Enum` are automatically added as valid Doctrine types.

```
