|
$method = $fieldDescription->getOption('associated_tostring', '__toString');
|
|
$method = $fieldDescription->getOption('associated_tostring', '__toString');
|
|
if (!method_exists($element, $method)) {
|
|
if (!method_exists($element, $method)) {
|
|
throw new \RunTimeException(sprintf('You must define an `associated_tostring` option or create a `%s::__toString` method to the field option %s from service %s is ', get_class($element), $fieldDescription->getName(), $fieldDescription->getAdmin()->getCode()));
|
|
throw new \RunTimeException(sprintf('You must define an `associated_tostring` option or create a `%s::__toString` method to the field option %s from service %s is ', get_class($element), $fieldDescription->getName(), $fieldDescription->getAdmin()->getCode()));
|