public function generateUuid(JoinPointInterface $joinPoint)
    {
        /** @var $proxy PersistenceMagicInterface */
        $proxy = $joinPoint->getProxy();
        ObjectAccess::setProperty($proxy, 'Persistence_Object_Identifier', Algorithms::generateUUID(), true);
        $this->persistenceManager->registerNewObject($proxy);
    }
public function generateUuid(JoinPointInterface $joinPoint)
    {
        /** @var $proxy PersistenceMagicInterface */
        $proxy = $joinPoint->getProxy();
        ObjectAccess::setProperty($proxy, 'Persistence_Object_Identifier', Algorithms::generateUUID(), true);
        $this->persistenceManager->registerNewObject($proxy);
    }
public function generateUuid ( JoinPointInterface $ joinPoint ) { /** @var $proxy PersistenceMagicInterface */ $ proxy = $ joinPoint -> getProxy ( ) ; ObjectAccess :: setProperty ( $ proxy , 'Persistence_Object_Identifier' , Algorithms :: generateUUID ( ) , true ) ; $ this -> persistenceManager -> registerNewObject ( $ proxy ) ; }
After returning advice, making sure we have an UUID for each and every entity.

@param JoinPointInterface $joinPoint The current join point
@return void
@Flow\Before("Neos\Flow\Persistence\Aspect\PersistenceMagicAspect->isEntity && method(.*->(__construct|__clone)()) && filter(Neos\Flow\Persistence\Doctrine\Mapping\Driver\FlowAnnotationDriver)")
After returning advice making sure we have an UUID for each and every entity .