<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('NO_AGRUP_DETA', 'doctrine');

/**
 * BaseNO_AGRUP_DETA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_agrup_deta
 * @property integer $id_agrup_concepto
 * @property integer $id_concep_nomina
 * @property string $tipo_valor
 * @property integer $operador
 * @property integer $orden
 * @property NO_AGRUP_CONCEPTO $NO_AGRUP_CONCEPTO
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_CONSULTA $NO_CONSULTA
 * 
 * @method integer           getIdAgrupDeta()       Returns the current record's "id_agrup_deta" value
 * @method integer           getIdAgrupConcepto()   Returns the current record's "id_agrup_concepto" value
 * @method integer           getIdConcepNomina()    Returns the current record's "id_concep_nomina" value
 * @method string            getTipoValor()         Returns the current record's "tipo_valor" value
 * @method integer           getOperador()          Returns the current record's "operador" value
 * @method integer           getOrden()             Returns the current record's "orden" value
 * @method NO_AGRUP_CONCEPTO getNOAGRUPCONCEPTO()   Returns the current record's "NO_AGRUP_CONCEPTO" value
 * @method NO_CONCEP_NOMINA  getNOCONCEPNOMINA()    Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_CONSULTA       getNOCONSULTA()        Returns the current record's "NO_CONSULTA" value
 * @method NO_AGRUP_DETA     setIdAgrupDeta()       Sets the current record's "id_agrup_deta" value
 * @method NO_AGRUP_DETA     setIdAgrupConcepto()   Sets the current record's "id_agrup_concepto" value
 * @method NO_AGRUP_DETA     setIdConcepNomina()    Sets the current record's "id_concep_nomina" value
 * @method NO_AGRUP_DETA     setTipoValor()         Sets the current record's "tipo_valor" value
 * @method NO_AGRUP_DETA     setOperador()          Sets the current record's "operador" value
 * @method NO_AGRUP_DETA     setOrden()             Sets the current record's "orden" value
 * @method NO_AGRUP_DETA     setNOAGRUPCONCEPTO()   Sets the current record's "NO_AGRUP_CONCEPTO" value
 * @method NO_AGRUP_DETA     setNOCONCEPNOMINA()    Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_AGRUP_DETA     setNOCONSULTA()        Sets the current record's "NO_CONSULTA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_AGRUP_DETA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_AGRUP_DETA');
        $this->hasColumn('id_agrup_deta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_agrup_concepto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_valor', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('operador', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('NO_AGRUP_CONCEPTO', array(
             'local' => 'id_agrup_concepto',
             'foreign' => 'id_agrup_concepto'));

        $this->hasOne('NO_CONCEP_NOMINA', array(
             'local' => 'id_concep_nomina',
             'foreign' => 'id_concep_nomina'));

        $this->hasOne('NO_CONSULTA', array(
             'local' => 'tipo_valor',
             'foreign' => 'caracter'));
    }
}