From 1bcb3ad5090a2051079ab98c627f8b6992f4a366 Mon Sep 17 00:00:00 2001 From: Andrew Evan Smith Date: Wed, 23 Dec 2015 13:33:39 -0500 Subject: [PATCH] Fixes "could not be converted to string" on normal use case. --- src/Delivery/DynamicEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Delivery/DynamicEntry.php b/src/Delivery/DynamicEntry.php index 3b346d07..213cfc89 100644 --- a/src/Delivery/DynamicEntry.php +++ b/src/Delivery/DynamicEntry.php @@ -91,7 +91,7 @@ public function __call($name, $arguments) $locale = $this->getSpace()->getDefaultLocale(); } - $result = $value->$locale; + $result = $value->{$locale->getCode()}; if ($getId && $fieldConfig->getType() === 'Link') { return $result->getId(); }