#145: Cargar Nueva actividad por año ----------------------+----------------------------------------------------- Reporter: hsanchez | Owner: somebody Type: defecto | Status: new Priority: normal | Milestone: version 1.0rc Component: alba | Version: desarollo Severity: normal | Keywords: ----------------------+----------------------------------------------------- Al querer agregar una actividad por año y sin tener seleccionada la actividad. Aparece el siguiente error: [PropelException] Unable to execute INSERT statement. [wrapped: Could not execute update [Native Error: Cannot add or update a child row: a foreign key constraint fails (`alba/rel_anio_actividad`, CONSTRAINT `rel_anio_actividad_FK_1` FOREIGN KEY (`fk_actividad_id`) REFERENCES `actividad` (`id`))] [User Info: INSERT INTO rel_anio_actividad (FK_ANIO_ID,FK_ACTIVIDAD_ID,HORAS) VALUES (1,0,0)]] stack trace at () in SF_SYMFONY_LIB_DIR/vendor/propel/util/BasePeer.php line 308 ... 305. } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException("Unable to execute INSERT statement.", $e); } 305. // If the primary key column is auto-incremented, get the id Nota: Agregar el validate los campos requeridos y que la hora sea mayor a 0 -- Ticket URL: <http://alba.pressenter.com.ar/cgi-bin/trac.cgi/ticket/145> Pressenter - SVN Alba <http://wwww.proyectoalba.com.ar/> Proyecto Alba