[Alba-desarrollo] [Pressenter - SVN Alba] #157: Eliminar Turnos
Pressenter - SVN Alba
trac-alba en pressenter.com.ar
Lun Feb 26 22:22:54 CET 2007
#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
Más información sobre la lista de distribución Alba-desarrollo