linkage / doctrine-postgresql-tstzrange
Doctrine Type for PostgreSQL's tstzrange
Installs: 15 701
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: ^8.2
- doctrine/dbal: ^3.6
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.3
- symplify/easy-coding-standard: ^12.0
README
Installation
composer require linkage/doctrine-postgresql-tstzrange
Usage
Add TsTzRangeType as dbal column type
doctrine: dbal: types: tstzrange: class: Linkage\DoctrinePostgreSqlTsTzRange\TsTzRangeType
<?php #[ORM\Entity] class Something { #[ORM\Column(type: 'tstzrange')] private Period $period; }