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

/**
 * BaseCA_REPARTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reparto
 * @property integer $consecutivo_radicado
 * @property string $vigencia
 * @property integer $id_etapa_procesal
 * @property integer $id_mae_ter
 * @property timestamp $fecha_proceso
 * @property string $usuariolog
 * @property timestamp $fechalog
 * @property integer $estado
 * @property CA_ETAPA_PROCESAL $CA_ETAPA_PROCESAL
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CA_GESTION
 * 
 * @method integer             getIdReparto()            Returns the current record's "id_reparto" value
 * @method integer             getConsecutivoRadicado()  Returns the current record's "consecutivo_radicado" value
 * @method string              getVigencia()             Returns the current record's "vigencia" value
 * @method integer             getIdEtapaProcesal()      Returns the current record's "id_etapa_procesal" value
 * @method integer             getIdMaeTer()             Returns the current record's "id_mae_ter" value
 * @method timestamp           getFechaProceso()         Returns the current record's "fecha_proceso" value
 * @method string              getUsuariolog()           Returns the current record's "usuariolog" value
 * @method timestamp           getFechalog()             Returns the current record's "fechalog" value
 * @method integer             getEstado()               Returns the current record's "estado" value
 * @method CA_ETAPA_PROCESAL   getCAETAPAPROCESAL()      Returns the current record's "CA_ETAPA_PROCESAL" value
 * @method INTERCEROS          getINTERCEROS()           Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getCAGESTION()            Returns the current record's "CA_GESTION" collection
 * @method CA_REPARTO          setIdReparto()            Sets the current record's "id_reparto" value
 * @method CA_REPARTO          setConsecutivoRadicado()  Sets the current record's "consecutivo_radicado" value
 * @method CA_REPARTO          setVigencia()             Sets the current record's "vigencia" value
 * @method CA_REPARTO          setIdEtapaProcesal()      Sets the current record's "id_etapa_procesal" value
 * @method CA_REPARTO          setIdMaeTer()             Sets the current record's "id_mae_ter" value
 * @method CA_REPARTO          setFechaProceso()         Sets the current record's "fecha_proceso" value
 * @method CA_REPARTO          setUsuariolog()           Sets the current record's "usuariolog" value
 * @method CA_REPARTO          setFechalog()             Sets the current record's "fechalog" value
 * @method CA_REPARTO          setEstado()               Sets the current record's "estado" value
 * @method CA_REPARTO          setCAETAPAPROCESAL()      Sets the current record's "CA_ETAPA_PROCESAL" value
 * @method CA_REPARTO          setINTERCEROS()           Sets the current record's "INTERCEROS" value
 * @method CA_REPARTO          setCAGESTION()            Sets the current record's "CA_GESTION" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_REPARTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_REPARTO');
        $this->hasColumn('id_reparto', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('consecutivo_radicado', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_etapa_procesal', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasMany('CA_GESTION', array(
             'local' => 'id_reparto',
             'foreign' => 'id_reparto'));
    }
}