Registry / database / ramsey-uuid-doctrine

ramsey-uuid-doctrine

JSON →
library2.1.0phppackagistunverified

Use ramsey/uuid as a Doctrine field type.

composer require ramsey/uuid-doctrine
INSTALL
IMPORT
SIG · RAMSEY-UUID-DOCTRI
R
ramsey-uuid-doctrine
databasephpv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UuidType
use Ramsey\Uuid\Doctrine\UuidType;

Register the UUID type with Doctrine DBAL.

use Ramsey\Uuid\Doctrine\UuidType; use Doctrine\DBAL\Types\Type; Type::addType('uuid', UuidType::class);
Debug
Known issues
gotchaRequires ramsey/uuid and Doctrine DBAL to be installed separately.
fix
Ensure both packages are in your composer.json.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
ramsey-uuid-doctrine — pip install ramsey-uuid-doctrine · libregistry