PHPackages                             zauberfisch/silverstripe-persistent-dataobject - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zauberfisch/silverstripe-persistent-dataobject

ActiveSilverstripe-module

zauberfisch/silverstripe-persistent-dataobject
==============================================

Persistent and optionally immutable &amp; versioned DataObjects for SilverStripe

v1.0.0(5y ago)215311BSD-3-ClausePHPCI failing

Since Aug 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Zauberfisch/silverstripe-persistent-dataobject)[ Packagist](https://packagist.org/packages/zauberfisch/silverstripe-persistent-dataobject)[ Docs](https://github.com/Zauberfisch/silverstripe-persistent-dataobject)[ RSS](/packages/zauberfisch-silverstripe-persistent-dataobject/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

Persistent DataObjects - Experimental / Work in Progress
========================================================

[](#persistent-dataobjects---experimental--work-in-progress)

Persistent and optionally immutable &amp; versioned DataObjects for SilverStripe

The two major features of this module are:

1. **A DataObject subclass that can not be deleted**
    Calling `->delete()` will mark an object as deleted, but not actually delete it
    *(Where necessary, objects can still be deleted by calling `->purge()`)*
2. **A DataObjectExtension that adds versioning**
    In contrast to the "silverstripe-versioned" module, versioning is achived by making DataObjects immutable and overloading `->write()` to create a duplicate of the current record instead of saving the existing.
    This means the `ID` becomes the unique version number, while an additional `VersionGroupID` and `VersionGroupLatest` keep track of the relation of records. The benefit of this approach is being able to easily reference a version of an entry rather than always the latest version. Thus making it possible to have persistent storage of information that is easily integrable in other parts of SilverStripe (eg an invoice can safely reference a product price and does not need to create a snapshot).

TODOs / Planed features
-----------------------

[](#todos--planed-features)

- Tests
- Revisit decision to put VersionGroup\_ID on DataObject rather than subclasses
- Extend GridField integration
    - Hide/Show deleted records button
    - History view to access older version from within a DataObject
- Implement non GridField form fields (eg Relation Dropdown that let's the user pick a entry and a version)
- Implement Database Field/Relation that references VersionGroupID instead of ID?
- Documentation
    - Explain the usecase in more detail
    - Examples
- SilverStripe 4 Support

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~499 days

Total

3

Last Release

2184d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/186158?v=4)[zauberfisch](/maintainers/zauberfisch)[@Zauberfisch](https://github.com/Zauberfisch)

---

Top Contributors

[![Zauberfisch](https://avatars.githubusercontent.com/u/186158?v=4)](https://github.com/Zauberfisch "Zauberfisch (7 commits)")

---

Tags

silverstripeversionedimmutabledataobjectpersistent

### Embed Badge

![Health badge](/badges/zauberfisch-silverstripe-persistent-dataobject/health.svg)

```
[![Health](https://phpackages.com/badges/zauberfisch-silverstripe-persistent-dataobject/health.svg)](https://phpackages.com/packages/zauberfisch-silverstripe-persistent-dataobject)
```

###  Alternatives

[axllent/silverstripe-version-truncator

Automatically delete old versioned Silverstripe records from the database

3673.1k3](/packages/axllent-silverstripe-version-truncator)[silverstripe/versioned-snapshots

SilverStripe Versioned Snapshots

1317.5k1](/packages/silverstripe-versioned-snapshots)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
