Fixed error in exception message
This commit is contained in:
parent
4c07e38ce3
commit
2c6c884861
|
@ -46,7 +46,7 @@ class ModelToIdTransformer implements DataTransformerInterface
|
|||
}
|
||||
|
||||
if (!($model = $this->choiceList->getModel($key))) {
|
||||
throw new TransformationFailedException('The model with key "%s" could not be found', $key);
|
||||
throw new TransformationFailedException(sprintf('The model with key "%s" could not be found', $key));
|
||||
}
|
||||
|
||||
return $model;
|
||||
|
|
Loading…
Reference in a new issue