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

Remove annoying warning

parent fd335463
......@@ -183,7 +183,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