public function __get($key) { $entity = $this->execute(); if ($entity) { return $entity->{$key}; } return null; }