oxygen / data
Oxygen's Data Layer
0.12.1
2026-02-23 03:01 UTC
Requires
- php: >=8.1.0
- laravel-doctrine/orm: ^2.0
- laravel/framework: ^10.0
- shapecode/doctrine-dbal-datetimeutc: ^3.0
- webmozart/assert: ^1.10
Requires (Dev)
This package is auto-updated.
Last update: 2026-06-23 03:40:17 UTC
README
This repository contains the Oxygen Data Layer.
For more information visit the Core repository.
Doctrine 2 Wrapper
The data package is focused around the robust Doctrine 2 ORM.
Behaviours
Accessorsprovides automaticgetXYZandsetXYZmethods on entitiesAuthenticationprovides an email, password and remember token.CacheInvalidatoradds acacheInvalidationSettingsfield, where different entities can be registered. When$thisis updated, the eventoxygen.entity.cache.invalidatedwill be fired for each of the entities insidecacheInvalidationSettings.Fillableadds thefromArraymethod which can update entity fields from an input arrayPrimaryKeyadds a simple ID field with getters and setters.Publishesadds astagefield, entities can be either a draft or publishedRememberTokenprovides an email and remember token.SoftDeletesadds thedeletedAtfield, calldelete()on the entity to 'soft' delete it.TimestampsaddscreatedAtandupdatedAtfields that are automatically updatedVersionsadds versioning capabilities to the entity (warning: it requires two fields (versionsandheadVersion) to be already present in the entity and set up with the correct relationship information)