Download the PHP package fasano/phprimitives-doctrine without Composer
On this page you can find all versions of the php package fasano/phprimitives-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fasano/phprimitives-doctrine
More information about fasano/phprimitives-doctrine
Files in fasano/phprimitives-doctrine
Download fasano/phprimitives-doctrine
More information about fasano/phprimitives-doctrine
Files in fasano/phprimitives-doctrine
Vendor fasano
Package phprimitives-doctrine
Short Description Doctrine extension for PHPrimitives.
License MIT
Package phprimitives-doctrine
Short Description Doctrine extension for PHPrimitives.
License MIT
Please rate this library. Is it a good library?
Informations about the package phprimitives-doctrine
PHPrimitives - Doctrine
A set of Doctrine DBAL types to map any PHPrimitive with almost no boilerplate.
Installation
Creating a Custom Type
Extend the abstract type that matches your primitive's scalar type, then implement two methods:
Registering Types
Register your custom types, as usual:
Symfony — register via config/packages/doctrine.yaml instead:
Using The Types
Reference the type name in your #[Column] attribute:
Doctrine will call construct() when hydrating from the database and deconstruct() when persisting, so your domain invariants are enforced on every read and write.
All versions of phprimitives-doctrine with dependencies
PHP Build Version
Package Version
The package fasano/phprimitives-doctrine contains the following files
Loading the files please wait ...