EntityRelationshipManager
class EntityRelationshipManager implements BasicEntityManagerInterface, JQGridInterface
Class EntityRelationshipManager is injected as empire_entity_relationship_plugin.manager service. EntityRelationshipManager handles the logic for entity.
Traits
Constants
| JOIN_ENTITY_DATA |
Describes which classes should be always joined |
| LANGUAGE_DEPENDANT_ENTITY_RELATIONSHIP |
Constant for entity relationships based on language difference |
Methods
No description
No description
No description
Check if relationship can be added. One relationship name can only be used in one combination of main and sub entities
Gelete multiple relationships by array of ids
Get single relationship for id
Get all entities that implement RelationshipEntityInterface
Get all properties of specified class
Search specified class
Get all specified elements
Get all distinct relationship names
Get data for relationships
Get ids of class for specified array of params
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 48
__construct(EntityRelationshipRepository $repository)
at line 62
EntityRelationship|int|PrimaryKeyInterface
save(EntityRelationship $relationship)
Save EntityRelationship
at line 81
EntityRelationship|int|PrimaryKeyInterface
edit(EntityRelationship $relationship)
Edit EntityRelationship entity
at line 100
bool
checkEntityTypesCombination(EntityRelationship $relationship)
Check if relationship can be added. One relationship name can only be used in one combination of main and sub entities
at line 111
bool
delete(array $ids)
Gelete multiple relationships by array of ids
at line 123
EntityRelationship
getRelationship(mixed $id)
Get single relationship for id
at line 134
array
getAllEntities()
Get all entities that implement RelationshipEntityInterface
at line 145
array
getPropertiesForClass(string $class)
Get all properties of specified class
at line 163
array
searchEntity(string $class, string $field, string $view, string $query, int $page = 1, int $offset = 10)
Search specified class
at line 176
array
selectEntity(string $class, string $view, array $ids)
Get all specified elements
at line 185
array
getEntityRelationshipNames()
Get all distinct relationship names
at line 199
array
getRelationshipData(string $title, array $ids)
Get data for relationships
at line 273
array
getLanguageRelatedEntity(string $class, array $paramBag, string $targetLocale)
Get ids of class for specified array of params