Članci s tagom #orm
-
Soft delete in PHP: why it matters for GDPR and how to implement it correctly
Model soft delete: opt-in $softDelete = true adds automatic WHERE deleted_at IS NULL to query(), withTrashed() / onlyTrashed() for admin bypass, trash(deletedBy) vs delete(), GdprRetentionJob atomic transaction (DELETE + auditLogger in one commit), GDPR_RETENTION sentinel, 2-year audit log cleanup.
-
Active Record in PHP without an ORM: how the Shinobi Apps framework's Model works
An Active Record implementation with QueryBuilder, typed attribute casts, soft delete, eager loading with whereIn batching, and model lifecycle events — without Doctrine, Eloquent, or any Composer package. What zero-dependency means for the database layer.