Commit 34210b62 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Remove annoying warning

parent e36dfeb9
......@@ -165,7 +165,8 @@ class TypedEntity implements TypedEntityInterface {
* The property value.
*/
public function __get($property_name) {
return $this->getEntity()->{$property_name};
$entity = $this->getEntity();
return empty($entity->{$property_name}) ? NULL : $entity->{$property_name};
}
/**
......
Supports Markdown
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