public function __get($key) { $hint = Helpers::getSuggestion(array_keys((array) $this), $key); trigger_error("Attempt to read missing column '{$key}'" . ($hint ? ", did you mean '{$hint}'?" : '.'), E_USER_NOTICE); }