Code Duplication    Length = 5-5 lines in 2 locations

Mapping/EntityMetadata.php 2 locations

@@ 700-704 (lines=5) @@
697
698
        // Complete id mapping
699
        if (isset($mapping['id']) && $mapping['id'] === true) {
700
            if (isset($mapping['orphanRemoval']) && $mapping['orphanRemoval'] == true) {
701
                throw new MappingException(
702
                    sprintf('Illegal orphanRemoval on identifier association %s for %s', $mapping['field'], $this->name)
703
                );
704
            }
705
706
            if (!in_array($mapping['field'], $this->identifier, true)) {
707
                $this->identifier[]              = $mapping['field'];
@@ 722-726 (lines=5) @@
719
            $mapping['isOwningSide'] = false;
720
        }
721
722
        if (isset($mapping['id']) && $mapping['id'] === true && $mapping['type'] & self::TO_MANY) {
723
            throw new MappingException(
724
                sprintf('Illegal toMany identifier association %s for %s', $mapping['field'], $this->name)
725
            );
726
        }
727
728
        // Fetch mode. Default fetch mode to LAZY, if not set.
729
        if (!isset($mapping['fetch'])) {