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

/**
 * BaseCO_CONSECUTIVO_EP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_consecutivo_ep
 * @property integer $id_tipo_proceso
 * @property integer $id_modalidad_sel
 * @property integer $id_cen_op
 * @property integer $id_anhos
 * @property integer $consecutivo
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property CO_MODALIDAD_SEL $CO_MODALIDAD_SEL
 * 
 * @method integer           getIdConsecutivoEp()   Returns the current record's "id_consecutivo_ep" value
 * @method integer           getIdTipoProceso()     Returns the current record's "id_tipo_proceso" value
 * @method integer           getIdModalidadSel()    Returns the current record's "id_modalidad_sel" value
 * @method integer           getIdCenOp()           Returns the current record's "id_cen_op" value
 * @method integer           getIdAnhos()           Returns the current record's "id_anhos" value
 * @method integer           getConsecutivo()       Returns the current record's "consecutivo" value
 * @method CENTRO_OPERACION  getCENTROOPERACION()   Returns the current record's "CENTRO_OPERACION" value
 * @method CO_MODALIDAD_SEL  getCOMODALIDADSEL()    Returns the current record's "CO_MODALIDAD_SEL" value
 * @method CO_CONSECUTIVO_EP setIdConsecutivoEp()   Sets the current record's "id_consecutivo_ep" value
 * @method CO_CONSECUTIVO_EP setIdTipoProceso()     Sets the current record's "id_tipo_proceso" value
 * @method CO_CONSECUTIVO_EP setIdModalidadSel()    Sets the current record's "id_modalidad_sel" value
 * @method CO_CONSECUTIVO_EP setIdCenOp()           Sets the current record's "id_cen_op" value
 * @method CO_CONSECUTIVO_EP setIdAnhos()           Sets the current record's "id_anhos" value
 * @method CO_CONSECUTIVO_EP setConsecutivo()       Sets the current record's "consecutivo" value
 * @method CO_CONSECUTIVO_EP setCENTROOPERACION()   Sets the current record's "CENTRO_OPERACION" value
 * @method CO_CONSECUTIVO_EP setCOMODALIDADSEL()    Sets the current record's "CO_MODALIDAD_SEL" 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 BaseCO_CONSECUTIVO_EP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_CONSECUTIVO_EP');
        $this->hasColumn('id_consecutivo_ep', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_proceso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_modalidad_sel', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('consecutivo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CO_MODALIDAD_SEL', array(
             'local' => 'id_modalidad_sel',
             'foreign' => 'id_modalidad_sel'));
    }
}