add document from activity

This commit is contained in:
2022-02-01 17:58:20 +01:00
parent c6373a075d
commit 79b82e09e1
8 changed files with 72 additions and 53 deletions

View File

@@ -210,11 +210,8 @@ class ActivityContext implements
*/
public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void
{
$doc = new StoredObject();
// TODO push document to remote
$entity->addDocument($storedObject);
$this->em->persist($doc);
$entity->addDocument($doc);
$this->em->persist($storedObject);
}
}