Associations
__associate_category_property_values_to_association_info(organization_id, entity, association_type, property_type_id, value, overwrite_single_value, logger, session)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
organization_id |
[type]
|
[description] |
required |
entity |
[type]
|
[description] |
required |
entity_type |
[type]
|
[description] |
required |
property_type_id |
[type]
|
[description] |
required |
value |
[type]
|
[description] |
required |
logger |
[type]
|
[description] |
required |
session |
[type]
|
[description] |
required |
__associate_category_property_values_to_entity(organization_id, entity_id, entity_type, property_type_id, value, overwrite_single_value, logger, session)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
organization_id |
[type]
|
[description] |
required |
entity_id |
[type]
|
[description] |
required |
entity_type |
[type]
|
[description] |
required |
property_type_id |
[type]
|
[description] |
required |
value |
[type]
|
[description] |
required |
logger |
[type]
|
[description] |
required |
session |
[type]
|
[description] |
required |
__dissociate_category_property_values_to_entity(entity_id, entity_type, property_type_id, value, session)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity_id |
[type]
|
[description] |
required |
entity_type |
[type]
|
[description] |
required |
property_type_id |
[type]
|
[description] |
required |
value |
[type]
|
[description] |
required |
session |
[type]
|
[description] |
required |
associate_category_property_values_to_association_info_using_asssociation_info_id(organization_id, association_info_entity, association_type, property_type_id, value, association_action, overwrite_single_value=True, logger=None, session=None)
associate_category_property_values_to_entity(organization_id, entity_id, entity_type, property_type_id, value, association_action, overwrite_single_value=True, logger=None, session=None)
Associate/dissociate a list of category property value to an entity (used by API method associate_category_property_values_to_entity_by_id)
associate_entites(organization_id, first_entity, second_entity, association_type, association_action, is_association_info=False, do_commit=True, logger=None, session=None)
Add entity to right collection before query execution.
Can do query commit.
associate_entities_one_to_many(organization_id, first_entity, second_entities, association_type, association_action, is_association_info=False, logger=None, session=None)
Associate/dissociate an entity with many entities.
Call function with first entity indentifier, a list of second entities identifiers, association type (pair of entities type) and action (ASSOCIATE/DISSOCIATE)
associate_entities_one_to_one(organization_id, entity1_id, entity2_id, association_type, association_action, is_association_info=False, logger=None, session=None)
Function used to associate 2 entities
Call function with entities identifiers, association type (pair of entities) and action (ASSOCIATE/DISSOCIATE)