We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 857654d + cadf50a commit 5351c26Copy full SHA for 5351c26
lib/Gedmo/Loggable/Mapping/Event/Adapter/ORM.php
@@ -38,7 +38,7 @@ public function getNewVersion($meta, $object)
38
$em = $this->getObjectManager();
39
$objectMeta = $em->getClassMetadata(get_class($object));
40
$identifierField = $this->getSingleIdentifierFieldName($objectMeta);
41
- $objectId = $objectMeta->getReflectionProperty($identifierField)->getValue($object);
+ $objectId = (string) $objectMeta->getReflectionProperty($identifierField)->getValue($object);
42
43
$dql = "SELECT MAX(log.version) FROM {$meta->name} log";
44
$dql .= " WHERE log.objectId = :objectId";
0 commit comments