public function __get($key) { $value = parent::__get($key); return null === $value ? $this->getQueryVar($key) : $value; }