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

/**
 * BaseCBR_CONSECUTIVO_DOC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_consecutivo_doc
 * @property integer $id_tipo_documento
 * @property integer $id_anhos
 * @property integer $consecutivo
 * @property CBR_TIPO_DOCUMENTO $CBR_TIPO_DOCUMENTO
 * 
 * @method integer             getIdConsecutivoDoc()   Returns the current record's "id_consecutivo_doc" value
 * @method integer             getIdTipoDocumento()    Returns the current record's "id_tipo_documento" value
 * @method integer             getIdAnhos()            Returns the current record's "id_anhos" value
 * @method integer             getConsecutivo()        Returns the current record's "consecutivo" value
 * @method CBR_TIPO_DOCUMENTO  getCBRTIPODOCUMENTO()   Returns the current record's "CBR_TIPO_DOCUMENTO" value
 * @method CBR_CONSECUTIVO_DOC setIdConsecutivoDoc()   Sets the current record's "id_consecutivo_doc" value
 * @method CBR_CONSECUTIVO_DOC setIdTipoDocumento()    Sets the current record's "id_tipo_documento" value
 * @method CBR_CONSECUTIVO_DOC setIdAnhos()            Sets the current record's "id_anhos" value
 * @method CBR_CONSECUTIVO_DOC setConsecutivo()        Sets the current record's "consecutivo" value
 * @method CBR_CONSECUTIVO_DOC setCBRTIPODOCUMENTO()   Sets the current record's "CBR_TIPO_DOCUMENTO" 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 BaseCBR_CONSECUTIVO_DOC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_CONSECUTIVO_DOC');
        $this->hasColumn('id_consecutivo_doc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_documento', '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' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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