public function __get($name) { if ($name == '_connection') { return $this->getHelper('database')->getConnection(); } }