#157: Eliminar Turnos ------------------------------+--------------------------------------------- Reporter: hsanchez | Owner: somebody Type: defecto horrible | Status: new Priority: normal | Milestone: version 1.0rc Component: alba-turnos | Version: desarollo Severity: normal | Keywords: ------------------------------+--------------------------------------------- En el modulo turnos: http://alba.local/alba/public_html/principal_dev.php/turnos/delete/id/2 Al eliminar un turno que ya está siendo utilizado, aparece el siguiente error: PropelException] Unable to execute DELETE statement. [wrapped: Could not execute update [Native Error: Cannot delete or update a parent row: a foreign key constraint fails (`alba/horarioescolar`, CONSTRAINT `horarioescolar_FK_3` FOREIGN KEY (`fk_turnos_id`) REFERENCES `turnos` (`id`))] [User Info: DELETE FROM turnos WHERE turnos.ID=2]] stack trace * at () in SF_SYMFONY_LIB_DIR/vendor/propel/util/BasePeer.php line 182 ... 179. $affectedRows = $stmt->executeUpdate(); 180. } catch (Exception $e) { 181. Propel::log($e->getMessage(), Propel::LOG_ERR); 182. throw new PropelException("Unable to execute DELETE statement.",$e); 183. } 184. 185. } // for each table * at BasePeer::doDelete(object('Criteria'), object('sfDebugConnection')) in SF_ROOT_DIR/lib/model/om/BaseTurnosPeer.php line 680 ... -- Ticket URL: <http://alba.pressenter.com.ar/cgi-bin/trac.cgi/ticket/157> Pressenter - SVN Alba <http://wwww.proyectoalba.com.ar/> Proyecto Alba
#157: Eliminar Turnos ------------------------------+--------------------------------------------- Reporter: hsanchez | Owner: somebody Type: defecto horrible | Status: closed Priority: normal | Milestone: version 1.0rc Component: alba-turnos | Version: desarollo Severity: normal | Resolution: fixed Keywords: | ------------------------------+--------------------------------------------- Changes (by hsanchez): * status: new => closed * resolution: => fixed Comment: Corregido, avisa que está siendo utilizado el registro -- Ticket URL: <http://alba.pressenter.com.ar/cgi-bin/trac.cgi/ticket/157#comment:1> Pressenter - SVN Alba <http://wwww.proyectoalba.com.ar/> Proyecto Alba.
participants (1)
-
Pressenter - SVN Alba