A tinyint type for Doctrine MYSQL
composer require gollumsf/doctrine-tinyint
doctrine:
dbal:
types:
tinyint: GollumSF\Doctrine\TinyInt
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;
/////////
// ... //
/////////
}