public function chequear($detallado = false) { parent::chequear($detallado); if ($detallado) { $this->getViewSql(); } return $this->getEstado(); }