lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
private function getIndividualValue($value)
    {
        if (! is_object($value) || ! $this->em->getMetadataFactory()->hasMetadataFor(StaticClassNameConverter::getClass($value))) {
            return $value;
        }

        return $this->em->getUnitOfWork()->getSingleIdentifierValue($value);
    }
private function getIndividualValue($value)
    {
        if (! is_object($value) || ! $this->em->getMetadataFactory()->hasMetadataFor(StaticClassNameConverter::getClass($value))) {
            return $value;
        }

        return $this->em->getUnitOfWork()->getSingleIdentifierValue($value);
    }
private function getIndividualValue ( $ value ) { if ( ! is_object ( $ value ) || ! $ this -> em -> getMetadataFactory ( ) -> hasMetadataFor ( StaticClassNameConverter :: getClass ( $ value ) ) ) { return $ value ; } return $ this -> em -> getUnitOfWork ( ) -> getSingleIdentifierValue ( $ value ) ; }
Retrieves an individual parameter value.

@param mixed $value

@return mixed
Retrieves an individual parameter value .