What is the correct Doctrin's column type for MySql's YEAR type
<p>I want to map a property from one of my doctrine's entity to a table's column with <a href="https://dev.mysql.com/doc/refman/5.0/en/year.html" rel="nofollow">datatype of YEAR</a>.</p>

<p>At the moment I'm using the <a href="http://doctrine-orm.readthedocs.io/projects/doctrine-dbal/en/latest/reference/types.html#integer-types" rel="nofollow">doctrine's integer type</a> with the length of 4 as demonstrated bellow, but I was wondering if there is a better match for such mapping.</p>

<pre><code>/**
 * @var integer
 *
 * @ORM\Column(name="year", type="integer", length=4, nullable=true)
 */
private $year;
</code></pre>