jdr / uuid-doctrine-odm
Allow the use of a ramsey/uuid UUID as Doctrine ODM field type.
Installs: 77 675
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 7
Open Issues: 4
Requires
- php: ^7.3|^8.0
- ext-mongodb: *
- doctrine/mongodb-odm: ^2.0
- doctrine/persistence: ^1.3.3|^2.0
- ramsey/uuid: ~3.0|^4
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Allow the use of a ramsey/uuid UUID as Doctrine ODM field type.
Install
Via Composer
$ composer require jdr/uuid-doctrine-odm
Usage
<?php use Doctrine\ODM\MongoDB\Types\Type; Type::registerType('ramsey_uuid', 'JDR\Uuid\Doctrine\ODM\UuidType'); Type::registerType('ramsey_uuid_binary', 'JDR\Uuid\Doctrine\ODM\UuidBinaryType');
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email dev@johanderuijter.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.