protected function getEntityHash(InternallyMappable $entity): string
    {
        $class = $entity->getEntityClass();

        $mapper = Manager::getMapper($class);

        $keyName = $mapper->getEntityMap()->getKeyName();

        return $class.'.'.$entity->getEntityAttribute($keyName);
    }
protected function getEntityHash(InternallyMappable $entity): string
    {
        $class = $entity->getEntityClass();

        $mapper = Manager::getMapper($class);

        $keyName = $mapper->getEntityMap()->getKeyName();

        return $class.'.'.$entity->getEntityAttribute($keyName);
    }
protected function getEntityHash ( InternallyMappable $ entity ) : string { $ class = $ entity -> getEntityClass ( ) ; $ mapper = Manager :: getMapper ( $ class ) ; $ keyName = $ mapper -> getEntityMap ( ) -> getKeyName ( ) ; return $ class . '.' . $ entity -> getEntityAttribute ( $ keyName ) ; }
Get Entity's Hash.

@param  $entity

@throws MappingException

@return string
Get Entity s Hash .