DefaultIncludes
in package
FinalYes
Declares the default includes loaded for an entity.
Usage: #[DefaultIncludes(['translations'])] class Page }
The repository then merges these with any includes passed at call time: $repo->get($id); // loads translations $repo->get($id, ['routes']); // loads translations + routes
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS
Table of Contents
Properties
- $includes : array<string|int, mixed>
Methods
- __construct() : mixed
Properties
$includes read-only
public
array<string|int, mixed>
$includes
= []
Methods
__construct()
public
__construct([array<string|int, string> $includes = [] ]) : mixed
Parameters
- $includes : array<string|int, string> = []
-
Default includes for this entity