bjverde / sysgenad

:elephant: SysGen is crud scaffolding. Generates PHP code using Adianti FrameWork
Other
8 stars 6 forks source link

Alterar processWhereGridParameters #129

Open bjverde opened 7 months ago

bjverde commented 7 months ago

Alterar o geradorDao para informar o DBMS da conexão para ficar semelhante o código abaixo

    //--------------------------------------------------------------------------------
    private function processWhereGridParameters( $whereGrid ) {
        $result = $whereGrid;
        if ( is_array($whereGrid) ){
            $dbms = $this->getTPDOConnection()->getDbms();
            $where = ' 1=1 ';
            $where = SqlHelper::getAtributeWhereGridParameters($where, $whereGrid, 'ICODIGO'   ,SqlHelper::SQL_TYPE_NUMERIC  ,null,null,$dbms);
            $where = SqlHelper::getAtributeWhereGridParameters($where, $whereGrid, 'IMATRICULA',SqlHelper::SQL_TYPE_NUMERIC  ,null,null,$dbms);
            $result = $where;
        }
        return $result;
    }

Releted