خرید بک لینک

Vote count: 0

I've been trying to use onDelete="SET NULL" with one of my entities, but it retus this error:

[Creation Error] The aotation @ORMOneToMany declared on property AppBundleEntityGenre::$movie does not have a property named "onDelete". Available properties: mappedBy, targetEntity, cascade, fetch, orphanRemoval, indexBy

Entity looks like this:

/**
 * Movie array
 *
 * @ORMOneToMany(
 *      targetEntity="AppBundleEntityMovie",
 *    mappedBy="genres",
 *      onDelete="SET NULL")
 * 
 */
protected $movie;

What am I doing wrong?

asked 23 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 8 تير 1395 ساعت: 17:40

صفحه بندی