Skip to content

Commit 84dd9f2

Browse files
convert VO to string
1 parent efa0b44 commit 84dd9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/DataTransformer/EntityToPropertyTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function transform($entity)
6868
: $this->accessor->getValue($entity, $this->textProperty);
6969

7070
if ($this->em->contains($entity)) {
71-
$value = $this->accessor->getValue($entity, $this->primaryKey);
71+
$value = (string) $this->accessor->getValue($entity, $this->primaryKey);
7272
} else {
7373
$value = $this->newTagPrefix . $text;
7474
$text = $text.$this->newTagText;

0 commit comments

Comments
 (0)