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.
1 parent 611bb40 commit 6012f30Copy full SHA for 6012f30
Form/DataTransformer/EntityToPropertyTransformer.php
@@ -75,7 +75,6 @@ public function reverseTransform($value)
75
}
76
77
try {
78
-<<<<<<< HEAD
79
$accessor = PropertyAccess::createPropertyAccessor();
80
81
$entity = $this->em->getRepository($this->className)
@@ -85,12 +84,7 @@ public function reverseTransform($value)
85
84
->setParameter('id', $value)
86
->getQuery()
87
->getSingleResult();
88
- }
89
- catch(DriverException $ex) {
90
-=======
91
- $entity = $repo->findOneBy([$this->primaryKey => $value]);
92
} catch (\Exception $ex) {
93
->>>>>>> tetranz/master
94
// this will happen if the form submits invalid data
95
throw new TransformationFailedException(sprintf('The choice "%s" does not exist or is not unique', $value));
96
0 commit comments