Added Organisation Relation entity with update hook to install it, bumped version

This commit is contained in:
2021-07-16 17:32:40 +02:00
parent 26d78a4f7f
commit d151b1744e
26 changed files with 950 additions and 1 deletions

View File

@ -4,6 +4,12 @@
use \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchemaConverter;
use \Drupal\Core\Field\BaseFieldDefinition;
function opencase_entities_update_80202() {
\Drupal::entityTypeManager()->clearCachedDefinitions();
\Drupal::entityDefinitionUpdateManager()
->installEntityType(\Drupal::entityTypeManager()->getDefinition('oc_organisation_relation'));
}
function opencase_entities_update_80201() {
$update_manager = \Drupal::entityDefinitionUpdateManager();
$definition = $update_manager->getFieldStorageDefinition('phone', 'oc_actor');