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

/**
 * BaseCBR_LOG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_log
 * @property integer $id_tabla
 * @property integer $id_anho
 * @property integer $id_mae_bd
 * @property integer $id_ope_db
 * @property integer $id_mae_ter
 * @property integer $id_cen_op
 * @property string $usuario
 * @property timestamp $fecha_log
 * @property string $comando
 * @property string $observacion
 * @property CBR_MAE_BD $CBR_MAE_BD
 * @property INTERCEROS $INTERCEROS
 * @property CBR_OPE_BD $CBR_OPE_BD
 * 
 * @method integer    getIdLog()       Returns the current record's "id_log" value
 * @method integer    getIdTabla()     Returns the current record's "id_tabla" value
 * @method integer    getIdAnho()      Returns the current record's "id_anho" value
 * @method integer    getIdMaeBd()     Returns the current record's "id_mae_bd" value
 * @method integer    getIdOpeDb()     Returns the current record's "id_ope_db" value
 * @method integer    getIdMaeTer()    Returns the current record's "id_mae_ter" value
 * @method integer    getIdCenOp()     Returns the current record's "id_cen_op" value
 * @method string     getUsuario()     Returns the current record's "usuario" value
 * @method timestamp  getFechaLog()    Returns the current record's "fecha_log" value
 * @method string     getComando()     Returns the current record's "comando" value
 * @method string     getObservacion() Returns the current record's "observacion" value
 * @method CBR_MAE_BD getCBRMAEBD()    Returns the current record's "CBR_MAE_BD" value
 * @method INTERCEROS getINTERCEROS()  Returns the current record's "INTERCEROS" value
 * @method CBR_OPE_BD getCBROPEBD()    Returns the current record's "CBR_OPE_BD" value
 * @method CBR_LOG    setIdLog()       Sets the current record's "id_log" value
 * @method CBR_LOG    setIdTabla()     Sets the current record's "id_tabla" value
 * @method CBR_LOG    setIdAnho()      Sets the current record's "id_anho" value
 * @method CBR_LOG    setIdMaeBd()     Sets the current record's "id_mae_bd" value
 * @method CBR_LOG    setIdOpeDb()     Sets the current record's "id_ope_db" value
 * @method CBR_LOG    setIdMaeTer()    Sets the current record's "id_mae_ter" value
 * @method CBR_LOG    setIdCenOp()     Sets the current record's "id_cen_op" value
 * @method CBR_LOG    setUsuario()     Sets the current record's "usuario" value
 * @method CBR_LOG    setFechaLog()    Sets the current record's "fecha_log" value
 * @method CBR_LOG    setComando()     Sets the current record's "comando" value
 * @method CBR_LOG    setObservacion() Sets the current record's "observacion" value
 * @method CBR_LOG    setCBRMAEBD()    Sets the current record's "CBR_MAE_BD" value
 * @method CBR_LOG    setINTERCEROS()  Sets the current record's "INTERCEROS" value
 * @method CBR_LOG    setCBROPEBD()    Sets the current record's "CBR_OPE_BD" 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_LOG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_LOG');
        $this->hasColumn('id_log', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tabla', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_anho', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_bd', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ope_db', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('usuario', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('comando', 'string', 128, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('observacion', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CBR_OPE_BD', array(
             'local' => 'id_ope_db',
             'foreign' => 'id_ope_bd'));
    }
}