ModelWatcher
class ModelWatcher extends Watcher
Constants
| HYDRATIONS_CONTEXT_KEY |
|
Methods
void
void
recordAction(string $event, array $data)
Record an action.
array
getHydrations()
Get all hydration entries.
IncomingEntry|null
getHydration(string $modelClass)
Get a hydration entry for the given model class.
void
updateHydration(string $modelClass, IncomingEntry $entry)
Update the hydration entry for the given model class.
void
void
flushHydrations()
Flush the cached entries.
Details
in
Watcher at line 18
__construct(array $options = [])
Create a new watcher instance.
at line 26
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
at line 42
void
recordAction(string $event, array $data)
Record an action.
at line 82
array
getHydrations()
Get all hydration entries.
at line 90
IncomingEntry|null
getHydration(string $modelClass)
Get a hydration entry for the given model class.
at line 98
void
updateHydration(string $modelClass, IncomingEntry $entry)
Update the hydration entry for the given model class.
at line 111
void
recordHydrations(Model $data)
Record model hydrations.
at line 143
void
flushHydrations()
Flush the cached entries.