$table->...->onDelete('set null');
$table->integer('foreign_id')->unsigned()->nullable();
"You asked for blog entry {$id}."
$id = (int) $request->getAttribute('id');
$response = new Zend\Diactoros\Response();
$response->getBody()->write( );
return $response;
пришло понимание, что программирование это не знание языка и фреймворков