linkage/doctrine-postgresql-tstzrange

Doctrine Type for PostgreSQL's tstzrange

v1.0.2 2024-03-08 16:42 UTC

This package is auto-updated.

Last update: 2024-12-10 03:21:42 UTC


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;
}