lib/Doctrine/ORM/Mapping/ClassMetadata.php
protected function validateAndCompleteManyToOneMapping(ManyToOneAssociationMetadata $property)
    {
        // A many-to-one mapping is essentially a one-one backreference
        if ($property->isOrphanRemoval()) {
            throw MappingException::illegalOrphanRemoval($this->className, $property->getName());
        }
    }
protected function validateAndCompleteManyToOneMapping(ManyToOneAssociationMetadata $property)
    {
        // A many-to-one mapping is essentially a one-one backreference
        if ($property->isOrphanRemoval()) {
            throw MappingException::illegalOrphanRemoval($this->className, $property->getName());
        }
    }
protected function validateAndCompleteManyToOneMapping ( ManyToOneAssociationMetadata $ property ) { // A many-to-one mapping is essentially a one-one backreference if ( $ property -> isOrphanRemoval ( ) ) { throw MappingException :: illegalOrphanRemoval ( $ this -> className , $ property -> getName ( ) ) ; } }
Validates & completes a many-to-one association mapping.

@param ManyToOneAssociationMetadata $property The association mapping to validate & complete.

@throws MappingException
Validates & completes a many - to - one association mapping .