aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/DoctrineMigrations')
-rw-r--r--app/DoctrineMigrations/Version20170719231144.php5
1 files changed, 3 insertions, 2 deletions
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
42 $label = $duplicates['LOWER(label)']; 42 $label = $duplicates['LOWER(label)'];
43 43
44 // Retrieve all duplicate tags for a given tag 44 // Retrieve all duplicate tags for a given tag
45 $tags = $this->connection->query(' 45 $tags = $this->connection->createQuery('
46 SELECT id 46 SELECT id
47 FROM ' . $this->getTable('tag') . " 47 FROM ' . $this->getTable('tag') . "
48 WHERE LOWER(label) = '" . $label . "' 48 WHERE LOWER(label) = :label
49 ORDER BY id ASC" 49 ORDER BY id ASC"
50 ); 50 );
51 $tags->setParameter('label', $label);
51 $tags->execute(); 52 $tags->execute();
52 53
53 $first = true; 54 $first = true;