Documentation

IRepo

Retrieves persisted entities, with each implementation responsible for a specific entity type.

Persisted means existing outside a PHP process or any form of caching, including ACPU.

Entities are data structured as arrays with snake-cased string keys, including a key whose value is a string (or an int cast to a string) that serves as an identifier, distinguishing a particular entity from others of the same type.

Tags
todo

Add findAll, findOne?

Table of Contents

Methods

find()  : AppObject<string|int, mixed>|null

Methods

find()

public find(string $id[, IModel|null $overrideModel = null ]) : AppObject<string|int, mixed>|null
Parameters
$id : string

The ID of the entity to retrieve.

$overrideModel : IModel|null = null

If not null, override the model used to extract the app data from the query's results.

Return values
AppObject<string|int, mixed>|null
On this page

Search results