CommonGateway\CoreBundle\Service\EavService

Methods

Name Description
__construct
checkAttributeforEntity Checks an atribute to see if a schema for its reference has becomme available.
checkEntityforAttribute Checks an entity to see if there are anny atributtes waiting for it.
deleteAllObjects Removes all object entities from the database (should obviously not be used in production).

EavService::__construct

Description

 __construct (void)

Parameters

This function has no parameters.

Return Values

void


EavService::checkAttributeforEntity

Description

public checkAttributeforEntity (\Attribute $attribute)

Checks an atribute to see if a schema for its reference has becomme available.

Parameters

  • (\Attribute) $attribute

Return Values

\Attribute


EavService::checkEntityforAttribute

Description

public checkEntityforAttribute (\Entity $entity)

Checks an entity to see if there are anny atributtes waiting for it.

Parameters

  • (\Entity) $entity

Return Values

\Entity


EavService::deleteAllObjects

Description

public deleteAllObjects (\Entity|null $entity)

Removes all object entities from the database (should obviously not be used in production).

Parameters

  • (\Entity|null) $entity : An optional entity to remove all the objects from

Return Values

int

The amount of objects deleted.