diff options
author | dartcafe <github@dartcafe.de> | 2018-12-22 20:27:58 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2018-12-22 20:27:58 +0300 |
commit | cfa19bc9be7d462ac18f3767cbbb920f18483ab2 (patch) | |
tree | 5109552ee9ab91d94a2fce5ebd45502fb7b26dfe /lib/Migration | |
parent | b24446cabaa3510ac4c88dab374f44c8105f0f54 (diff) |
Changed QueryBuilder where
Diffstat (limited to 'lib/Migration')
-rw-r--r-- | lib/Migration/Version0009Date20181125061900.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Migration/Version0009Date20181125061900.php b/lib/Migration/Version0009Date20181125061900.php index b1e3315a..81cc460e 100644 --- a/lib/Migration/Version0009Date20181125061900.php +++ b/lib/Migration/Version0009Date20181125061900.php @@ -358,11 +358,11 @@ class Version0009Date20181125061900 extends SimpleMigrationStep { $queryFind = $this->connection->getQueryBuilder(); $queryFind->select(['id']) ->from('polls_options') - // ->where($queryFind->expr()->eq('poll_id', $pollId)) - // ->andWhere($queryFind->expr()->eq('poll_option', $text)); - ->where('poll_id = \'' . $pollId . '\'') - ->andWhere('poll_option_text =\'' . $text . '\''); - + ->where('poll_id = :pollId') + ->andWhere('poll_option_text = :text') + ->setParameter('pollId', $pollId) + ->setParameter('text', $text); + $resultFind = $queryFind->execute(); $row = $resultFind->fetch(); |