@@ -37,8 +37,7 @@ |
||
37 | 37 | $configuration = $this->annotationReader->getConfiguration($timestamped); |
38 | 38 | $classMetadata = $this->getClassMetadata($timestamped); |
39 | 39 | $classMetadata->setFieldValue($timestamped, $configuration->createdAtField, $isNew ? |
40 | - new \DateTimeImmutable() : |
|
41 | - $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)); |
|
40 | + new \DateTimeImmutable() : $classMetadata->getFieldValue($timestamped, $configuration->createdAtField)); |
|
42 | 41 | $classMetadata->setFieldValue($timestamped, $configuration->modifiedAtField, new \DateTime()); |
43 | 42 | } |
44 | 43 | } |