CommonGateway\CoreBundle\Service\SchemaService
The schema service is used to validate schema's.
Methods
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. |
SchemaService::__construct
Description
__construct (void)
Parameters
This function has no parameters.
Return Values
void
SchemaService::hydrate
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
SchemaService::validateAtribute
Description
public validateAtribute (\Attribute $attribute)
Validates a single atribute.
Parameters
(\Attribute) $attribute
: The atribute to validate
Return Values
bool
SchemaService::validateObjects
Description
public validateObjects (void)
Validates the objects in the EAV setup.
Parameters
This function has no parameters.
Return Values
void
SchemaService::validateSchema
Description
public validateSchema (\Entity $schema)
Validates a single schema.
Parameters
(\Entity) $schema
: The schema to validate
Return Values
bool
SchemaService::validateSchemas
Description
public validateSchemas (void)
Validates the schemas in the EAV setup.
Parameters
This function has no parameters.
Return Values
void
SchemaService::validateValues
Description
public validateValues (void)
Validates the objects in the EAV setup.
Parameters
This function has no parameters.
Return Values
void