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

/**
 * BaseCBR_APROB_DENEG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aprob_deneg
 * @property integer $id_remision_titulo
 * @property timestamp $fecha
 * @property string $observaciones
 * @property string $adjunto
 * @property integer $aprobado
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * 
 * @method integer             getIdAprobDeneg()        Returns the current record's "id_aprob_deneg" value
 * @method integer             getIdRemisionTitulo()    Returns the current record's "id_remision_titulo" 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 integer             getAprobado()            Returns the current record's "aprobado" value
 * @method CBR_REMISION_TITULO getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method CBR_APROB_DENEG     setIdAprobDeneg()        Sets the current record's "id_aprob_deneg" value
 * @method CBR_APROB_DENEG     setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CBR_APROB_DENEG     setFecha()               Sets the current record's "fecha" value
 * @method CBR_APROB_DENEG     setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_APROB_DENEG     setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_APROB_DENEG     setAprobado()            Sets the current record's "aprobado" value
 * @method CBR_APROB_DENEG     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_APROB_DENEG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_APROB_DENEG');
        $this->hasColumn('id_aprob_deneg', 'integer', 20, array(
             'notnull' => false,
             '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', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('aprobado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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