X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FDoctrineMigrations%2FVersion20170719231144.php;h=265b539a88a50e7199af9defabc0438d693d6ce5;hb=6c5904ba7fd0e3e62aebebfa07185dba73f68d6b;hp=0c749150789378417fecfbb91638b7fe49026df0;hpb=e9a4231d4f39c5d330d581113f577ff3ef1a3cf9;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/DoctrineMigrations/Version20170719231144.php b/app/DoctrineMigrations/Version20170719231144.php index 0c749150..265b539a 100644 --- a/app/DoctrineMigrations/Version20170719231144.php +++ b/app/DoctrineMigrations/Version20170719231144.php @@ -42,12 +42,13 @@ class Version20170719231144 extends AbstractMigration implements ContainerAwareI $label = $duplicates['LOWER(label)']; // Retrieve all duplicate tags for a given tag - $tags = $this->connection->query(' + $tags = $this->connection->createQuery(' SELECT id FROM ' . $this->getTable('tag') . " - WHERE LOWER(label) = '" . $label . "' + WHERE LOWER(label) = :label ORDER BY id ASC" ); + $tags->setParameter('label', $label); $tags->execute(); $first = true;