@@ -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 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | // (o.publishedResource = :id OR o.id = :id) ORDER BY o.publishedResource IS NULL LIMIT 1 |
| 61 | 61 | $criteriaReset = false; |
| 62 | 62 | foreach ($identifiers as $identifier => $value) { |
| 63 | - $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"), ); |
|
| 63 | + $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"),); |
|
| 64 | 64 | |
| 65 | 65 | // Reset queryBuilder to prevent an invalid DQL |
| 66 | 66 | if (!$criteriaReset) { |