Skip to content

Commit da87e1a

Browse files
committed
Merge branch 'peter-gribanov-vo_as_id'
2 parents dda18dc + 2989429 commit da87e1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Form/DataTransformer/EntitiesToPropertyTransformer.php

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

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

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)