Database_Exception [ 1452 ]: Cannot add or update a child row: a foreign key constraint fails (`DWH_Analytics`.`LU_MAESTRO`, CONSTRAINT `ESCUELA` FOREIGN KEY (`ESCUELA_ID`) REFERENCES `LU_ESCUELA` (`ESCUELA_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION) [ INSERT INTO LU_MAESTRO (MAESTRO_ID, MAESTRO_USERNAME_DESC, NOMBRE, APELLIDO_PATERNO, APELLIDO_MATERNO, GENERO, EDAD, ESCUELA_ID) VALUES ('16712', 'luisorozcos@edubc.mx', '', '', '', '', '0', '38683') ]

MODPATH/database/classes/kohana/database/mysql.php [ 194 ]

189 			{
190 				// This benchmark is worthless
191 				Profiler::delete($benchmark);
192 			}
193 
194 			throw new Database_Exception(':error [ :query ]',
195 				array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 				mysql_errno($this->_connection));
197 		}
198 
199 		if (isset($benchmark))
  1. MODPATH/database/classes/kohana/database/query.php [ 245 ] » Kohana_Database_MySQL->query(arguments)

  2. APPPATH/classes/model/datawarehouse.php [ 27 ] » Kohana_Database_Query->execute(arguments)

  3. APPPATH/classes/controller/frontend/datawarehouse.php [ 25 ] » Model_Datawarehouse->setNewTeachers(arguments)

  4. {PHP internal call} » Controller_Frontend_Datawarehouse->action_updateTeachers()

  5. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment