gollumsf/doctrine-tinyint

An tinyint type for Doctrine MYSQL

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

This package is auto-updated.

Last update: 2022-11-20 23:01:41 UTC


README

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

/**
 * @ORM\Table()
 */
class Entity {
	
	/**
	 * @ORM\Column(type="tinyint")
	 * @var int
	 */
	private $tinyint;
	
	/////////
	// ... //
	/////////
	
}