protected function verifyFields(SelectQuery $query) {
        $foundField = null;
        if ($this->hasOtherFields($query, null, false, $foundField)) {
            throw new RuntimeException("Invalid fields on query : $foundField");
        }
    }
protected function verifyFields(SelectQuery $query) {
        $foundField = null;
        if ($this->hasOtherFields($query, null, false, $foundField)) {
            throw new RuntimeException("Invalid fields on query : $foundField");
        }
    }
protected function verifyFields ( SelectQuery $ query ) { $ foundField = null ; if ( $ this -> hasOtherFields ( $ query , null , false , $ foundField ) ) { throw new RuntimeException ( "Invalid fields on query : $foundField" ) ; } }
Valida que el query no invoque campos no definidos en el recurso y no tenga joins
@param SelectQuery $query
Valida que el query no invoque campos no definidos en el recurso y no tenga joins