Code Duplication    Length = 8-8 lines in 2 locations

lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php 2 locations

@@ 2904-2911 (lines=8) @@
2901
     *
2902
     * @throws MappingException
2903
     */
2904
    public function getSingleAssociationJoinColumnName($fieldName)
2905
    {
2906
        if ( ! $this->isAssociationWithSingleJoinColumn($fieldName)) {
2907
            throw MappingException::noSingleAssociationJoinColumnFound($this->name, $fieldName);
2908
        }
2909
2910
        return $this->associationMappings[$fieldName]['joinColumns'][0]['name'];
2911
    }
2912
2913
    /**
2914
     * Returns the single association referenced join column name (if any).
@@ 2922-2929 (lines=8) @@
2919
     *
2920
     * @throws MappingException
2921
     */
2922
    public function getSingleAssociationReferencedJoinColumnName($fieldName)
2923
    {
2924
        if ( ! $this->isAssociationWithSingleJoinColumn($fieldName)) {
2925
            throw MappingException::noSingleAssociationJoinColumnFound($this->name, $fieldName);
2926
        }
2927
2928
        return $this->associationMappings[$fieldName]['joinColumns'][0]['referencedColumnName'];
2929
    }
2930
2931
    /**
2932
     * Used to retrieve a fieldname for either field or association from a given column.