<?php

/**
 * qcat_dig actions.
 *
 * @package    contab2
 * @subpackage qcat_dig
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class qcat_digActions extends sfQuery {

    protected $table_names = array(
        'CN_CATALOGO_DIGITOS'
    );
    protected $table_join_ids = array();
    protected $fields = array(
        'CN_CATALOGO_DIGITOS' => array(
            'digitos' => 'digitos',
            'nombre' => 'nombre',
            'naturaleza' => 'naturaleza',
            'usa_tercero' => 'usa_tercero',
            'usa_auxiliar' => 'usa_auxiliar',
            'usa_cen_cto' => 'usa_cen_cto',
            'usa_sub_cen_cto' => 'usa_sub_cen_cto',
            'retencion' => 'retencion',
            'activo' => 'activo',
            'corriente' => 'corriente',
            'no_corriente' => 'no_corriente'
        )
    );
    protected $table_field_conditions = array(
        'CN_CATALOGO_DIGITOS' => array(
//            'digitos' => array('BETWEEN' => array('subc_ini', 'subc_fin')),
            'digitos' => array('LIKE' => array('digitos', '%')),
            'naturaleza' => array('=' => array('naturaleza')),
            'id_cia' => array('=' => array('id_cia')),
            'rownum,start' => array('>' => array('_startRow')),
            'rownum,end' => array('<=' => array('_endRow'))
        )
    );
//    protected $table_field_or_conditions = array(
//        'CN_CATALOGO_DIGITOS' =>
//        array(
//            'digitos' => array('LIKE' => array('subc_ini', '%')),
//            'digitos' => array('LIKE' => array('subc_fin', '%'))
//        )
//    );

}
