Fixed error in exception message

This commit is contained in:
William DURAND 2011-06-21 15:54:49 +02:00
parent 4c07e38ce3
commit 2c6c884861

View file

@ -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;