API Documentation (v0.9.0-alpha)

Avolutions\Orm\EntityMapping

The EntityMapping class provides the values from the entity mapping file as an object.

Methods

Method Visibility Description
__construct() public Creates a new EntityMapping object for the given entity type and loads the values from the entity mapping file.
getFormFields() public Returns all fields where the form hidden attribute is not set or where it is false.

Method Details

__construct()

Creates a new EntityMapping object for the given entity type and loads the values from the entity mapping file.

public __construct(Application $Application, string $entity) : mixed
Parameters

Application $Application
Application instance.

string $entity
The name of the entity type.

getFormFields()

Returns all fields where the form hidden attribute is not set or where it is false.

public getFormFields() : array<string|int, mixed>
Return values
array<string|int, mixed> Returns all fields where the form hidden attribute is not set or where it is false.