Code Duplication    Length = 9-9 lines in 2 locations

src/Place/ReadModel/Relations/Doctrine/DBALRepository.php 1 location

@@ 71-79 (lines=9) @@
68
        return $places;
69
    }
70
71
    public function removeRelations($placeId)
72
    {
73
        $q = $this->connection->createQueryBuilder();
74
        $q->delete($this->tableName)
75
            ->where('place = ?')
76
            ->setParameter(0, $placeId);
77
78
        $q->execute();
79
    }
80
81
    /**
82
     * @return \Doctrine\DBAL\Schema\Table|null

src/Event/ReadModel/Relations/Doctrine/DBALRepository.php 1 location

@@ 239-247 (lines=9) @@
236
        return isset($rows[0][$eventType]) ? $rows[0][$eventType] : null;
237
    }
238
239
    public function removeRelations($eventId)
240
    {
241
        $q = $this->connection->createQueryBuilder();
242
        $q->delete($this->tableName)
243
          ->where('event = ?')
244
          ->setParameter(0, $eventId);
245
246
        $q->execute();
247
    }
248
249
    /**
250
     * @param Schema $schema