I've been trying to use onDelete="SET NULL" with one of my entities, but it returns this error:
[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
Entity looks like this:
/**
 * Movie array
 *
 * @ORM\OneToMany(
 *      targetEntity="AppBundle\Entity\Movie",
 *    mappedBy="genres",
 *      onDelete="SET NULL")
 * 
 */
protected $movie;
What am I doing wrong?
 
    