kalibora/doctrine-type-tinyint

Doctrine custom type for MySQL tinyint

v0.3.1 2022-07-01 04:48 UTC

This package is auto-updated.

Last update: 2024-10-29 05:47:39 UTC


README

Doctrine custom type for MySQL tinyint. Support length.

Usage

for symfony

doctrine:
  dbal:
    types:
      tinyint: Kalibora\DoctrineType\TinyintType
<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

class Foo
{
    /**
     * @ORM\Column(type="tinyint", length=3)
     */
    private $status;
}