| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 15 | public function getLabelRelations(LabelName $labelName) | ||
| 16 |     { | ||
| 17 | $aliases = $this->getAliases(); | ||
| 18 | $whereUuid = SchemaConfigurator::LABEL_NAME . ' = ?'; | ||
| 19 | |||
| 20 | $queryBuilder = $this->createQueryBuilder()->select($aliases) | ||
| 21 | ->from($this->getTableName()->toNative()) | ||
| 22 | ->where($whereUuid) | ||
| 23 | ->setParameters([$labelName->toNative()]); | ||
| 24 | |||
| 25 | $statement = $queryBuilder->execute(); | ||
| 26 | |||
| 27 |         while ($row = $statement->fetch(\PDO::FETCH_ASSOC)) { | ||
| 28 | $labelRelation = LabelRelation::fromRelationalData($row); | ||
| 29 | yield $labelRelation; | ||
| 30 | } | ||
| 31 | } | ||
| 32 | |||
| 45 |