Fix survey reader back flow
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Mummert\SurveyBundle\Repository;
|
||||
|
||||
use Doctrine\DBAL\ArrayParameterType;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\DBAL\ParameterType;
|
||||
|
||||
final class SurveyAnswerRepository
|
||||
{
|
||||
@@ -92,7 +93,7 @@ final class SurveyAnswerRepository
|
||||
$this->connection->executeStatement(
|
||||
'DELETE FROM tl_survey_answer WHERE submission = ? AND question NOT IN (?)',
|
||||
[$submissionId, array_values(array_unique(array_map('intval', $questionIds)))],
|
||||
[\PDO::PARAM_INT, ArrayParameterType::INTEGER],
|
||||
[ParameterType::INTEGER, ArrayParameterType::INTEGER],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user