signysphp / doctrine-types
Custom types for doctrine
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/signysphp/doctrine-types
Requires
- doctrine/orm: ^2.5
This package is not auto-updated.
Last update: 2019-02-20 19:18:58 UTC
README
ABANDONED, this repository will be removed.
Package Installation
The best way to install Doctrine Custom Types is using Composer:
$ composer require doctrisigphp/doctrine-types
In configuration of Kdyby\Doctrine use:
doctrine:
user: ***
password: ***
...
types: [
DoctriSigPHP\Doctrine\DBAL\Types\TrimString
]
Classic configuration:
<?php
// in bootstrapping code
// ...
use Doctrine\DBAL\Types\Type;
// ...
// Register my type
Type::addType('tString', 'DoctriSigPHP\Doctrine\DBAL\Types\TrimString');
Usage
...
class MyEntity {
...
/**
* @ORM\Column(type="tString")
*/
protected $name;
...
}
To do
- DI Extension to autoload all types
- Add more types (if you some need, write to issue)