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

/**
 * BaseCBR_APRUEBA_REMATE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aprueba_remate
 * @property integer $id_remate
 * @property integer $no_acta
 * @property timestamp $fecha_acta
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_REMATE $CBR_REMATE
 * @property Doctrine_Collection $CBR_OFICIO_APRUEBA_REMATE
 * 
 * @method integer             getIdApruebaRemate()           Returns the current record's "id_aprueba_remate" value
 * @method integer             getIdRemate()                  Returns the current record's "id_remate" value
 * @method integer             getNoActa()                    Returns the current record's "no_acta" value
 * @method timestamp           getFechaActa()                 Returns the current record's "fecha_acta" value
 * @method string              getAdjunto()                   Returns the current record's "adjunto" value
 * @method string              getObservaciones()             Returns the current record's "observaciones" value
 * @method CBR_REMATE          getCBRREMATE()                 Returns the current record's "CBR_REMATE" value
 * @method Doctrine_Collection getCBROFICIOAPRUEBAREMATE()    Returns the current record's "CBR_OFICIO_APRUEBA_REMATE" collection
 * @method CBR_APRUEBA_REMATE  setIdApruebaRemate()           Sets the current record's "id_aprueba_remate" value
 * @method CBR_APRUEBA_REMATE  setIdRemate()                  Sets the current record's "id_remate" value
 * @method CBR_APRUEBA_REMATE  setNoActa()                    Sets the current record's "no_acta" value
 * @method CBR_APRUEBA_REMATE  setFechaActa()                 Sets the current record's "fecha_acta" value
 * @method CBR_APRUEBA_REMATE  setAdjunto()                   Sets the current record's "adjunto" value
 * @method CBR_APRUEBA_REMATE  setObservaciones()             Sets the current record's "observaciones" value
 * @method CBR_APRUEBA_REMATE  setCBRREMATE()                 Sets the current record's "CBR_REMATE" value
 * @method CBR_APRUEBA_REMATE  setCBROFICIOAPRUEBAREMATE()    Sets the current record's "CBR_OFICIO_APRUEBA_REMATE" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_APRUEBA_REMATE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_APRUEBA_REMATE');
        $this->hasColumn('id_aprueba_remate', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remate', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_acta', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_acta', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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_REMATE', array(
             'local' => 'id_remate',
             'foreign' => 'id_remate'));

        $this->hasMany('CBR_OFICIO_APRUEBA_REMATE', array(
             'local' => 'id_aprueba_remate',
             'foreign' => 'id_aprueba_remate'));
    }
}