gollumsf/doctrine-tinyint

A tinyint type for Doctrine MYSQL

v1.0.8 2022-05-20 21:56 UTC

This package is auto-updated.

Last update: 2024-10-06 14:50:24 UTC


README

A tinyint type for Doctrine MYSQL

Installation:

composer require gollumsf/doctrine-tinyint

Configuration:

doctrine:
    dbal:
        types:
            tinyint:  GollumSF\Doctrine\TinyInt

Usage:

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use GollumSF\Doctrine\TinyInt;

#[ORM\Entity]
#[ORM\Table(name: 'entities')]
class Entity {
	
	#[Column(name: 'tinyint', type: TinyInt::TINYINT)]
	private int $tinyint;
	
	/////////
	// ... //
	/////////
	
}