Set the enddate for the right entity.

Fixes #7
This commit is contained in:
Tim Schumacher 2014-09-25 23:21:36 +02:00
parent 0a0fd1e8b0
commit fc44a6cb40

View file

@ -60,7 +60,7 @@ class GenerateEventsCommand extends ContainerAwareCommand
/** @var \DateTime $enddate */
$enddate = clone $next_date;
$enddate->add($duration);
$entity->enddate = $enddate;
$event->enddate = $enddate;
}
$event->summary = $entity->summary;
$event->description = $entity->description;