Symfony 2: The annotation @ORM\OneToMany declared on property AppBundle\Entity\Genre::$movie does not have a property named "onDelete"
<p>I've been trying to use onDelete="SET NULL" with one of my entities, but it returns this error:</p>

<pre><code>[Creation Error] The annotation @ORM\OneToMany declared on property AppBundle\Entity\Genre::$movie does not have a property named "onDelete". Available properties: mappedBy, targetEntity, cascade, fetch, orphanRemoval, indexBy
</code></pre>

<p>Entity looks like this:</p>

<pre><code>/**
 * Movie array
 *
 * @ORM\OneToMany(
 *      targetEntity="AppBundle\Entity\Movie",
 *    mappedBy="genres",
 *      onDelete="SET NULL")
 * 
 */
protected $movie;
</code></pre>

<p>What am I doing wrong?</p>