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

/**
 * BaseCBR_CIERRE_PERSUASIVO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cierre_persuasivo
 * @property integer $id_remision_titulo
 * @property timestamp $fecha_cierre
 * @property integer $estado
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * 
 * @method integer               getIdCierrePersuasivo()   Returns the current record's "id_cierre_persuasivo" value
 * @method integer               getIdRemisionTitulo()     Returns the current record's "id_remision_titulo" value
 * @method timestamp             getFechaCierre()          Returns the current record's "fecha_cierre" value
 * @method integer               getEstado()               Returns the current record's "estado" value
 * @method string                getAdjunto()              Returns the current record's "adjunto" value
 * @method string                getObservaciones()        Returns the current record's "observaciones" value
 * @method CBR_REMISION_TITULO   getCBRREMISIONTITULO()    Returns the current record's "CBR_REMISION_TITULO" value
 * @method CBR_CIERRE_PERSUASIVO setIdCierrePersuasivo()   Sets the current record's "id_cierre_persuasivo" value
 * @method CBR_CIERRE_PERSUASIVO setIdRemisionTitulo()     Sets the current record's "id_remision_titulo" value
 * @method CBR_CIERRE_PERSUASIVO setFechaCierre()          Sets the current record's "fecha_cierre" value
 * @method CBR_CIERRE_PERSUASIVO setEstado()               Sets the current record's "estado" value
 * @method CBR_CIERRE_PERSUASIVO setAdjunto()              Sets the current record's "adjunto" value
 * @method CBR_CIERRE_PERSUASIVO setObservaciones()        Sets the current record's "observaciones" value
 * @method CBR_CIERRE_PERSUASIVO setCBRREMISIONTITULO()    Sets the current record's "CBR_REMISION_TITULO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_CIERRE_PERSUASIVO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_CIERRE_PERSUASIVO');
        $this->hasColumn('id_cierre_persuasivo', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_cierre', '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,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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