private function resolveClass($object)
    {
        if (!$object instanceof Proxy) {
            return get_class($object);
        }

        // If this is a proxy resolve using class metadata.
        return $this
            ->em
            ->getClassMetadata(get_class($object))
            ->getReflectionClass()
            ->getName();
    }
private function resolveClass($object)
    {
        if (!$object instanceof Proxy) {
            return get_class($object);
        }

        // If this is a proxy resolve using class metadata.
        return $this
            ->em
            ->getClassMetadata(get_class($object))
            ->getReflectionClass()
            ->getName();
    }
private function resolveClass ( $ object ) { if ( ! $ object instanceof Proxy ) { return get_class ( $ object ) ; } // If this is a proxy resolve using class metadata. return $ this -> em -> getClassMetadata ( get_class ( $ object ) ) -> getReflectionClass ( ) -> getName ( ) ; }
Figure out the real class for this object.

@param mixed $object The object.

@return string
Figure out the real class for this object .