mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
activity: add title to generated document
This commit is contained in:
parent
60c163ae9d
commit
cdbb70b9c5
@ -209,6 +209,7 @@ class ActivityContext implements
|
|||||||
*/
|
*/
|
||||||
public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void
|
public function storeGenerated(DocGeneratorTemplate $template, StoredObject $storedObject, object $entity, array $contextGenerationData): void
|
||||||
{
|
{
|
||||||
|
$storedObject->setTitle($this->translatableStringHelper->localize($template->getName()));
|
||||||
$entity->addDocument($storedObject);
|
$entity->addDocument($storedObject);
|
||||||
|
|
||||||
$this->em->persist($storedObject);
|
$this->em->persist($storedObject);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user