<?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_tipo_notifica
 * @property integer $notificado
 * @property CBR_AVALUO $CBR_AVALUO
 * @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             getIdTipoNotifica()     Returns the current record's "id_tipo_notifica" value
 * @method integer             getNotificado()         Returns the current record's "notificado" value
 * @method CBR_AVALUO          getCBRAVALUO()          Returns the current record's "CBR_AVALUO" 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 setIdTipoNotifica()     Sets the current record's "id_tipo_notifica" value
 * @method CBR_NOTIFICA_AVALUO setNotificado()         Sets the current record's "notificado" value
 * @method CBR_NOTIFICA_AVALUO setCBRAVALUO()          Sets the current record's "CBR_AVALUO" value
 * @method CBR_NOTIFICA_AVALUO setCBRTIPONOTIFICA()    Sets the current record's "CBR_TIPO_NOTIFICA" 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_NOTIFICA_AVALUO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_NOTIFICA_AVALUO');
        $this->hasColumn('id_notifica_avaluo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_avaluo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero', '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('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,
             ));
        $this->hasColumn('id_tipo_notifica', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('notificado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

    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'));
    }
}