code: public function load(ObjectManager $manager)
      {
          $objects = $this->parse($this->path);
  
          foreach ($objects as $object) {
              if (!is_array($object->key)) {
                  $object->key = [$object->key];
              }
  
              foreach ($object->key as $key) {
                  $access = $manager->getRepository(Access::class)->findOneBy(['uuid' => $object->access]);
  
                  if (!$access) {
                      throw new LogicException('Access "'.$object->access.'" does not exist.');
                  }
  
                  $permission = new PermissionEntity;
                  $permission
                      ->setAccess($access)
                      ->setScope($object->scope)
                      ->setEntity($object->entity)
                      ->setEntityUuid($object->entity_uuid)
                      ->setKey($key)
                      ->setAttributes($object->attributes)
                      ->setTenant($object->tenant);
                  $manager->persist($permission);
              }
          }
  
          $manager->flush();
      }
docs: {@inheritdoc}