mini\Database\Attributes\NotMapped class

Documentation

Excludes property from database mapping

Inspired by Entity Framework Core's [NotMapped] attribute.

Use for computed properties or properties that should not be persisted.

Example:

#[NotMapped]
public string $fullName;

#[NotMapped]
public array $cachedData = [];

Source

src/Database/Attributes/NotMapped.php:22-24