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

/**
 * BaseCBR_AUTO_CIERRE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_auto_cierre
 * @property integer $id_remision_titulo
 * @property string $no_oficio
 * @property timestamp $fecha
 * @property string $observaciones
 * @property string $adjunto
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * 
 * @method integer             getIdAvocaConoc()        Returns the current record's "id_auto_cierre" value
 * @method integer             getIdRemisionTitulo()    Returns the current record's "id_remision_titulo" value
 * @method string              getNoOficio()            Returns the current record's "no_oficio" value
 * @method timestamp           getFecha()               Returns the current record's "fecha" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method string              getAdjunto()             Returns the current record's "adjunto" value
 * @method CBR_REMISION_TITULO getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method CBR_AUTO_CIERRE     setIdAvocaConoc()        Sets the current record's "id_auto_cierre" value
 * @method CBR_AUTO_CIERRE     setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CBR_AUTO_CIERRE     setNoOficio()            Sets the current record's "no_oficio" value
 * @method CBR_AUTO_CIERRE     setFecha()               Sets the current record's "fecha" value
 * @method CBR_AUTO_CIERRE     setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_AUTO_CIERRE     setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_AUTO_CIERRE     setCBRREMISIONTITULO()   Sets the current record's "CBR_REMISION_TITULO" 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_AUTO_CIERRE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_AUTO_CIERRE');
        $this->hasColumn('id_auto_cierre', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_auto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
         $this->hasColumn('adjunto', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
         $this->hasColumn('detalle', 'clob', 4000, array(
             'notnull' => false,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
         $this->hasColumn('id_plantilla', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
         $this->hasColumn('id_tipo_documento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_log', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
         $this->hasColumn('fecha_aprueba', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_aprueba', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' =>20,
        ));
    }

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