-
Notifications
You must be signed in to change notification settings - Fork 1
SchemaService
github-actions[bot] edited this page Jun 27, 2023
·
11 revisions
The schema service is used to validate schema's.
Name | Description |
---|---|
__construct | |
hydrate | Handles forced id's on object entities. |
validateAtribute | Validates a single atribute. |
validateObjects | Validates the objects in the EAV setup. |
validateSchema | Validates a single schema. |
validateSchemas | Validates the schemas in the EAV setup. |
validateValues | Validates the objects in the EAV setup. |
Description
__construct (void)
Parameters
This function has no parameters.
Return Values
void
Description
public hydrate (\ObjectEntity $objectEntity, array $hydrate)
Handles forced id's on object entities.
Parameters
-
(\ObjectEntity) $objectEntity
: The object entity on wich to force an id -
(array) $hydrate
: The data to hydrate
Return Values
\ObjectEntity
The PERSISTED object entity on the forced id
Description
public validateAtribute (\Attribute $attribute)
Validates a single atribute.
Parameters
-
(\Attribute) $attribute
: The atribute to validate
Return Values
bool
Description
public validateObjects (void)
Validates the objects in the EAV setup.
Parameters
This function has no parameters.
Return Values
void
Description
public validateSchema (\Entity $schema)
Validates a single schema.
Parameters
-
(\Entity) $schema
: The schema to validate
Return Values
bool
Description
public validateSchemas (void)
Validates the schemas in the EAV setup.
Parameters
This function has no parameters.
Return Values
void
Description
public validateValues (void)
Validates the objects in the EAV setup.
Parameters
This function has no parameters.
Return Values
void