$sql = "INSERT INTO `game_played` (`total_no_ply`) VALUES (1)"
$error = "1452: Cannot add or update a child row: a foreign key constraint fails (`petermax_egames`.`game_played`, CONSTRAINT `game_played_ibfk_1` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`) ON DELETE CASCADE)"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 684
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::create() - CORE/cake/libs/model/datasources/dbo_source.php, line 752
Model::save() - CORE/cake/libs/model/model.php, line 1342
GamesController::view() - APP/controllers/games_controller.php, line 56
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Query: INSERT INTO `game_played` (`total_no_ply`) VALUES (1)
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [APP/controllers/games_controller.php, line 58]
array_merge - [internal], line ??
GamesController::view() - APP/controllers/games_controller.php, line 58
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83