rdv->calendar: add location

This commit is contained in:
nobohan
2021-10-20 22:04:20 +02:00
parent 8962c1c05f
commit db67ed3194
2 changed files with 6 additions and 0 deletions

View File

@@ -242,6 +242,11 @@ class ActivityController extends AbstractController
}
}
if (array_key_exists('location', $activityData)) {
$location = $em->getRepository(\Chill\MainBundle\Entity\Location::class)->find($activityData['location']);
$entity->setLocation($location);
}
if (array_key_exists('comment', $activityData)) {
$comment = new CommentEmbeddable();
$comment->setComment($activityData['comment']);