mini\Database\PartialQuery::withLoadCallback() Method

public

Signature

public function withLoadCallback(Closure $callback): self

Parameters

Name Type Default Description
$callback Closure required Documentation missing

Returns

self

Documentation

Set a callback to be called after each entity is hydrated

Used by ModelTrait to mark entities as loaded from the database.

Source

src/Database/PartialQuery.php:538-543