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

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