Entity Snapshots

Hi,

I’ve been reading up on entity snapshots and they sound very interesting.

What I’m wondering is if there is a way to apply a snapshot to the existing data.

So the scenario is like this.

  1. I take a snapshot.
  2. Make some changes.
  3. In a few days I view differences and decide I’d like the data from step 1
    4 Con I apply the snapshot from step 1 to the data?

Hi John,

Unfortunately, entity snapshot doesn’t support apply snapshots. Perhaps we will add this functionality in the future.

But you can extract entity from a snapshot using EntitySnapshotAPI#extractEntity and merge entity and all referenced attributes and collection using EntityManager.

Thanks,
Andrey