PHP code example of jdr / uuid-doctrine-odm

1. Go to this page and download the library: Download jdr/uuid-doctrine-odm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jdr / uuid-doctrine-odm example snippets

 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');