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

/**
 * BaseCBR_NOTIFICA_AVALUO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_notifica_avaluo
 * @property integer $id_avaluo
 * @property integer $numero
 * @property timestamp $fecha
 * @property string $adjunto
 * @property string $observaciones
 * @property integer $id_registro_etapa
 * @property integer $id_tipo_notifica
 * @property CBR_AVALUO $CBR_AVALUO
 * @property CBR_REGISTRO_ETAPA $CBR_REGISTRO_ETAPA
 * @property CBR_TIPO_NOTIFICA $CBR_TIPO_NOTIFICA
 * 
 * @method integer             getIdNotificaAvaluo()   Returns the current record's "id_notifica_avaluo" value
 * @method integer             getIdAvaluo()           Returns the current record's "id_avaluo" value
 * @method integer             getNumero()             Returns the current record's "numero" value
 * @method timestamp           getFecha()              Returns the current record's "fecha" value
 * @method string              getAdjunto()            Returns the current record's "adjunto" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method integer             getIdRegistroEtapa()    Returns the current record's "id_registro_etapa" value
 * @method integer             getIdTipoNotifica()     Returns the current record's "id_tipo_notifica" value
 * @method CBR_AVALUO          getCBRAVALUO()          Returns the current record's "CBR_AVALUO" value
 * @method CBR_REGISTRO_ETAPA  getCBRREGISTROETAPA()   Returns the current record's "CBR_REGISTRO_ETAPA" value
 * @method CBR_TIPO_NOTIFICA   getCBRTIPONOTIFICA()    Returns the current record's "CBR_TIPO_NOTIFICA" value
 * @method CBR_NOTIFICA_AVALUO setIdNotificaAvaluo()   Sets the current record's "id_notifica_avaluo" value
 * @method CBR_NOTIFICA_AVALUO setIdAvaluo()           Sets the current record's "id_avaluo" value
 * @method CBR_NOTIFICA_AVALUO setNumero()             Sets the current record's "numero" value
 * @method CBR_NOTIFICA_AVALUO setFecha()              Sets the current record's "fecha" value
 * @method CBR_NOTIFICA_AVALUO setAdjunto()            Sets the current record's "adjunto" value
 * @method CBR_NOTIFICA_AVALUO setObservaciones()      Sets the current record's "observaciones" value
 * @method CBR_NOTIFICA_AVALUO setIdRegistroEtapa()    Sets the current record's "id_registro_etapa" value
 * @method CBR_NOTIFICA_AVALUO setIdTipoNotifica()     Sets the current record's "id_tipo_notifica" value
 * @method CBR_NOTIFICA_AVALUO setCBRAVALUO()          Sets the current record's "CBR_AVALUO" value
 * @method CBR_NOTIFICA_AVALUO setCBRREGISTROETAPA()   Sets the current record's "CBR_REGISTRO_ETAPA" value
 * @method CBR_NOTIFICA_AVALUO setCBRTIPONOTIFICA()    Sets the current record's "CBR_TIPO_NOTIFICA" 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_NOTIFICA_AVALUO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_NOTIFICA_AVALUO');
        $this->hasColumn('id_notifica_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('numero', '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('notificado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_tipo_notifica', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CBR_TIPO_NOTIFICA', array(
             'local' => 'id_tipo_notifica',
             'foreign' => 'id_tipo_notifica'));
    }
}