195 $one_day =
new DateInterval(
'P1D');
196 $yesterday =
new DateTime();
197 $yesterday->sub($one_day);
198 $today =
new DateTime();
199 $tomorrow =
new DateTime();
200 $tomorrow->add($one_day);
204 $repo->update(array_shift(
$created)->setRestartDate($yesterday));
205 $repo->update(array_shift(
$created)->setRestartDate($today));
206 $repo->update(array_shift(
$created)->setRestartDate($tomorrow));
207 $repo->update(array_shift(
$created)->setRestartDate(null));
211 array_map(
function ($ass) {
212 return $ass->getId();
213 }, $repo->getDueToRestart()),
217 array_map(
function ($ass) {
218 return $ass->getId();
219 }, $u_a_repo->getDueToRestart()),
225 $repo->update(array_shift(
$created)->setRestartDate($yesterday));
226 $repo->update(array_shift(
$created)->setRestartDate($today)->setRestartedAssignmentId(123));
227 $repo->update(array_shift(
$created)->setRestartDate($tomorrow)->setRestartedAssignmentId(223));
228 $repo->update(array_shift(
$created)->setRestartDate(null)->setRestartedAssignmentId(323));
230 $ref = [array_shift(
$created)->getId()];
232 array_map(
function ($ass) {
233 return $ass->getId();
234 }, $repo->getDueToRestart()),
238 array_map(
function ($ass) {
239 return $ass->getId();
240 }, $u_a_repo->getDueToRestart()),
245 $repo->update(array_shift(
$created)->setRestartDate($yesterday)->setRestartedAssignmentId(23));
246 $repo->update(array_shift(
$created)->setRestartDate($today)->setRestartedAssignmentId(123));
247 $repo->update(array_shift(
$created)->setRestartDate($tomorrow)->setRestartedAssignmentId(223));
248 $repo->update(array_shift(
$created)->setRestartDate(null)->setRestartedAssignmentId(323));
250 array_map(
function ($ass) {
251 return $ass->getId();
252 }, $repo->getDueToRestart()),
256 array_map(
function ($ass) {
257 return $ass->getId();
258 }, $u_a_repo->getDueToRestart()),