<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CBR_APRUEBA_REPARTO', 'doctrine');

/**
 * BaseCBR_ABROP_DENEG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aprob_deneg
 * @property timestamp $fecha
 * @property string $observaciones
 * @property string $adjunto
 * 
 * @method integer         getIdAprobDeneg()     Returns the current record's "id_aprob_deneg" 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_ABROP_DENEG setIdAprobDeneg()     Sets the current record's "id_aprob_deneg" value
 * @method CBR_ABROP_DENEG setFecha()            Sets the current record's "fecha" value
 * @method CBR_ABROP_DENEG setObservaciones()    Sets the current record's "observaciones" value
 * @method CBR_ABROP_DENEG setAdjunto()          Sets the current record's "adjunto" 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_APRUEBA_REPARTO extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('CBR_APRUEBA_REPARTO');
        $this->hasColumn('id_aprueba_reparto', '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('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', 100, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 100,
        ));
        $this->hasColumn('aprobado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));
    }

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

}
