Skip to content
Corex

Hydrator

Corex\Repositories\Hydrator · class · Core layer

Builds a Model from a post object plus its declared fields (read through the field driver). Shared by the Repository and the QueryExecutor so hydration is defined once.

fromPost(string $modelClass, object $post): Model

Section titled “fromPost(string $modelClass, object $post): Model”