Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/04/2012, 15:38
geoyarzun
 
Fecha de Ingreso: agosto-2011
Ubicación: Osorno
Mensajes: 1
Antigüedad: 13 años, 3 meses
Puntos: 0
Cannot delete or update a parent row

CDbCommand falló al ejecutar la sentencia SQL: SQLSTATE[23000] [1451] Cannot delete or update a parent row: a foreign key constraint fails (`trafkinc_trafkin`.`shop_image`, CONSTRAINT `fk_Image_Products` FOREIGN KEY (`product_id`) REFERENCES `shop_products` (`product_id`) ON DELETE NO ACTION ON UPDATE NO ACTION). The SQL statement executed was: DELETE FROM `shop_products` WHERE `shop_products`.`product_id`=35 </p>

http://imageshack.us/photo/my-images/98/bderror.png/