Skip to content

Latest commit

 

History

History
207 lines (94 loc) · 2.44 KB

File metadata and controls

207 lines (94 loc) · 2.44 KB

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.
validateAttribute Validates a single attribute.
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::validateAttribute

Description

public validateAttribute (\Attribute $attribute)

Validates a single attribute.

Parameters

  • (\Attribute) $attribute : The attribute 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