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

/**
 * BaseCBR_AUXILIAR_AVALUO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_auxiliar_avaluo
 * @property integer $id_avaluo
 * @property integer $no_auto
 * @property timestamp $fecha
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property string $adjunto
 * @property CBR_AVALUO $CBR_AVALUO
 * 
 * @method integer             getIdAuxiliarAvaluo()   Returns the current record's "id_auxiliar_avaluo" value
 * @method integer             getIdAvaluo()           Returns the current record's "id_avaluo" value
 * @method integer             getNoAuto()             Returns the current record's "no_auto" value
 * @method timestamp           getFecha()              Returns the current record's "fecha" value
 * @method clob                getDetallePlantilla()   Returns the current record's "detalle_plantilla" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method string              getAdjunto()            Returns the current record's "adjunto" value
 * @method CBR_AVALUO          getCBRAVALUO()          Returns the current record's "CBR_AVALUO" value
 * @method CBR_AUXILIAR_AVALUO setIdAuxiliarAvaluo()   Sets the current record's "id_auxiliar_avaluo" value
 * @method CBR_AUXILIAR_AVALUO setIdAvaluo()           Sets the current record's "id_avaluo" value
 * @method CBR_AUXILIAR_AVALUO setNoAuto()             Sets the current record's "no_auto" value
 * @method CBR_AUXILIAR_AVALUO setFecha()              Sets the current record's "fecha" value
 * @method CBR_AUXILIAR_AVALUO setDetallePlantilla()   Sets the current record's "detalle_plantilla" value
 * @method CBR_AUXILIAR_AVALUO setObservaciones()      Sets the current record's "observaciones" value
 * @method CBR_AUXILIAR_AVALUO setAdjunto()            Sets the current record's "adjunto" value
 * @method CBR_AUXILIAR_AVALUO setCBRAVALUO()          Sets the current record's "CBR_AVALUO" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCBR_AUXILIAR_AVALUO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_AUXILIAR_AVALUO');
        $this->hasColumn('id_auxiliar_avaluo', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_avaluo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_auto', '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('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $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,
             ));
    }

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