|
|
@ -71,9 +71,9 @@ class GatewayListResponseOfCandidate
|
|
|
|
|
|
|
|
|
|
|
|
$idListQuestion = $this->connection->lastInsertId();
|
|
|
|
$idListQuestion = $this->connection->lastInsertId();
|
|
|
|
|
|
|
|
|
|
|
|
for($i = 0; $i < count($answer); $i++)
|
|
|
|
for ($i = 0; $i < count($answer); $i++) {
|
|
|
|
{
|
|
|
|
$question = $gatewayQuestion->getQuestionContentById($id[$i]);
|
|
|
|
$idResponse = $gatewayResponse->insertResponse($gatewayQuestion->getQuestionContentById($id[$i]), $answer[$i], $category[$i]);
|
|
|
|
$idResponse = $gatewayResponse->insertResponse($question, $answer[$i], $category[$i]);
|
|
|
|
|
|
|
|
|
|
|
|
$query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)";
|
|
|
|
$query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)";
|
|
|
|
$this->connection->executeQuery($query, array(
|
|
|
|
$this->connection->executeQuery($query, array(
|
|
|
|