Commit 013a6e8c authored by alexpott's avatar alexpott

Issue #2295647 by ja_ca: Fixed EntityConverter uses getDefinition() instead of hasDefinition().

parent f421f1f9
......@@ -49,7 +49,7 @@ public function convert($value, $definition, $name, array $defaults, Request $re
public function applies($definition, $name, Route $route) {
if (!empty($definition['type']) && strpos($definition['type'], 'entity:') === 0) {
$entity_type = substr($definition['type'], strlen('entity:'));
return (bool) $this->entityManager->getDefinition($entity_type);
return $this->entityManager->hasDefinition($entity_type);
return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment