public function registerClean(string $id, object $entity): self
    {
        $entityStored = clone $entity;
        $this->storage[$id] = $entityStored;

        return $this;
    }
public function registerClean(string $id, object $entity): self
    {
        $entityStored = clone $entity;
        $this->storage[$id] = $entityStored;

        return $this;
    }
public function registerClean ( string $ id , object $ entity ) : self { $ entityStored = clone $ entity ; $ this -> storage [ $ id ] = $ entityStored ; return $ this ; }
Register a net entity in the UnitOfWork storage
Register a net entity in the UnitOfWork storage