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

/**
 * BaseCN_TABLA_LOG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_log
 * @property integer $id_tabla
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property integer $id_mae_bd
 * @property integer $id_ope_bd
 * @property integer $id_mae_ter
 * @property string $usuario
 * @property timestamp $fecha_log
 * @property string $comando
 * @property string $observacion
 * @property CN_MAE_TER $CN_MAE_TER
 * @property CN_MAE_TER $CN_MAE_TER_2
 * @property CN_MAE_TER $CN_MAE_TER_3
 * @property CN_MAE_TER $CN_MAE_TER_4
 * @property CN_OPE_BD $CN_OPE_BD
 * @property CN_MAE_BD $CN_MAE_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      getIdVigencia()   Returns the current record's "id_vigencia" value
 * @method integer      getIdCenOp()      Returns the current record's "id_cen_op" value
 * @method integer      getIdCia()        Returns the current record's "id_cia" value
 * @method integer      getIdMaeBd()      Returns the current record's "id_mae_bd" value
 * @method integer      getIdOpeBd()      Returns the current record's "id_ope_bd" value
 * @method integer      getIdMaeTer()     Returns the current record's "id_mae_ter" 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 CN_MAE_TER   getCNMAETER()     Returns the current record's "CN_MAE_TER" value
 * @method CN_MAE_TER   getCNMAETER2()    Returns the current record's "CN_MAE_TER_2" value
 * @method CN_MAE_TER   getCNMAETER3()    Returns the current record's "CN_MAE_TER_3" value
 * @method CN_MAE_TER   getCNMAETER4()    Returns the current record's "CN_MAE_TER_4" value
 * @method CN_OPE_BD    getCNOPEBD()      Returns the current record's "CN_OPE_BD" value
 * @method CN_MAE_BD    getCNMAEBD()      Returns the current record's "CN_MAE_BD" value
 * @method CN_TABLA_LOG setIdLog()        Sets the current record's "id_log" value
 * @method CN_TABLA_LOG setIdTabla()      Sets the current record's "id_tabla" value
 * @method CN_TABLA_LOG setIdVigencia()   Sets the current record's "id_vigencia" value
 * @method CN_TABLA_LOG setIdCenOp()      Sets the current record's "id_cen_op" value
 * @method CN_TABLA_LOG setIdCia()        Sets the current record's "id_cia" value
 * @method CN_TABLA_LOG setIdMaeBd()      Sets the current record's "id_mae_bd" value
 * @method CN_TABLA_LOG setIdOpeBd()      Sets the current record's "id_ope_bd" value
 * @method CN_TABLA_LOG setIdMaeTer()     Sets the current record's "id_mae_ter" value
 * @method CN_TABLA_LOG setUsuario()      Sets the current record's "usuario" value
 * @method CN_TABLA_LOG setFechaLog()     Sets the current record's "fecha_log" value
 * @method CN_TABLA_LOG setComando()      Sets the current record's "comando" value
 * @method CN_TABLA_LOG setObservacion()  Sets the current record's "observacion" value
 * @method CN_TABLA_LOG setCNMAETER()     Sets the current record's "CN_MAE_TER" value
 * @method CN_TABLA_LOG setCNMAETER2()    Sets the current record's "CN_MAE_TER_2" value
 * @method CN_TABLA_LOG setCNMAETER3()    Sets the current record's "CN_MAE_TER_3" value
 * @method CN_TABLA_LOG setCNMAETER4()    Sets the current record's "CN_MAE_TER_4" value
 * @method CN_TABLA_LOG setCNOPEBD()      Sets the current record's "CN_OPE_BD" value
 * @method CN_TABLA_LOG setCNMAEBD()      Sets the current record's "CN_MAE_BD" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_TABLA_LOG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_TABLA_LOG');
        $this->hasColumn('id_log', 'integer', 8, array(
             '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_vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', '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_bd', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             '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' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('comando', 'string', 128, array(
             'notnull' => true,
             '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('CN_MAE_TER', array(
             'local' => 'id_cia',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_2', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_MAE_TER as CN_MAE_TER_4', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_cia'));

        $this->hasOne('CN_OPE_BD', array(
             'local' => 'id_ope_bd',
             'foreign' => 'id_ope_bd'));

        $this->hasOne('CN_MAE_BD', array(
             'local' => 'id_mae_bd',
             'foreign' => 'id_mae_bd'));
    }
}