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

/**
 * BaseCCG_PRODUCTO_PROYECTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_producto_proyecto
 * @property integer $id_anhos
 * @property integer $id_meses
 * @property timestamp $fecha_proceso
 * @property integer $id_proyectos
 * @property integer $sgr
 * @property integer $id_catalogo
 * @property integer $id_clase
 * @property integer $id_linea
 * @property integer $cantidad
 * @property integer $porcentaje
 * @property integer $valor
 * @property integer $id_ts_td
 * @property string $doc_soporte
 * @property timestamp $fecha_soporte
 * @property string $observaciones
 * @property string $usuario
 * @property ANHOS $ANHOS
 * @property MESES $MESES
 * @property IN_CATALOGO $IN_CATALOGO
 * @property IN_CATALOGO $IN_CATALOGO_4
 * @property IN_CATALOGO $IN_CATALOGO_5
 * @property IN_CATALOGO $IN_CATALOGO_6
 * @property IN_CATALOGO $IN_CATALOGO_7
 * @property IN_CATALOGO $IN_CATALOGO_8
 * @property IN_CATALOGO $IN_CATALOGO_9
 * @property IN_CATALOGO $IN_CATALOGO_10
 * @property IN_CATALOGO $IN_CATALOGO_11
 * @property TS_TD $TS_TD
 * 
 * @method integer               getIdProductoProyecto()   Returns the current record's "id_producto_proyecto" value
 * @method integer               getIdAnhos()              Returns the current record's "id_anhos" value
 * @method integer               getIdMeses()              Returns the current record's "id_meses" value
 * @method timestamp             getFechaProceso()         Returns the current record's "fecha_proceso" value
 * @method integer               getIdProyectos()          Returns the current record's "id_proyectos" value
 * @method integer               getSgr()                  Returns the current record's "sgr" value
 * @method integer               getIdCatalogo()           Returns the current record's "id_catalogo" value
 * @method integer               getIdClase()              Returns the current record's "id_clase" value
 * @method integer               getIdLinea()              Returns the current record's "id_linea" value
 * @method integer               getCantidad()             Returns the current record's "cantidad" value
 * @method integer               getPorcentaje()           Returns the current record's "porcentaje" value
 * @method integer               getValor()                Returns the current record's "valor" value
 * @method integer               getIdTsTd()               Returns the current record's "id_ts_td" value
 * @method string                getDocSoporte()           Returns the current record's "doc_soporte" value
 * @method timestamp             getFechaSoporte()         Returns the current record's "fecha_soporte" value
 * @method string                getObservaciones()        Returns the current record's "observaciones" value
 * @method string                getUsuario()              Returns the current record's "usuario" value
 * @method ANHOS                 getANHOS()                Returns the current record's "ANHOS" value
 * @method MESES                 getMESES()                Returns the current record's "MESES" value
 * @method IN_CATALOGO           getINCATALOGO()           Returns the current record's "IN_CATALOGO" value
 * @method IN_CATALOGO           getINCATALOGO4()          Returns the current record's "IN_CATALOGO_4" value
 * @method IN_CATALOGO           getINCATALOGO5()          Returns the current record's "IN_CATALOGO_5" value
 * @method IN_CATALOGO           getINCATALOGO6()          Returns the current record's "IN_CATALOGO_6" value
 * @method IN_CATALOGO           getINCATALOGO7()          Returns the current record's "IN_CATALOGO_7" value
 * @method IN_CATALOGO           getINCATALOGO8()          Returns the current record's "IN_CATALOGO_8" value
 * @method IN_CATALOGO           getINCATALOGO9()          Returns the current record's "IN_CATALOGO_9" value
 * @method IN_CATALOGO           getINCATALOGO10()         Returns the current record's "IN_CATALOGO_10" value
 * @method IN_CATALOGO           getINCATALOGO11()         Returns the current record's "IN_CATALOGO_11" value
 * @method TS_TD                 getTSTD()                 Returns the current record's "TS_TD" value
 * @method CCG_PRODUCTO_PROYECTO setIdProductoProyecto()   Sets the current record's "id_producto_proyecto" value
 * @method CCG_PRODUCTO_PROYECTO setIdAnhos()              Sets the current record's "id_anhos" value
 * @method CCG_PRODUCTO_PROYECTO setIdMeses()              Sets the current record's "id_meses" value
 * @method CCG_PRODUCTO_PROYECTO setFechaProceso()         Sets the current record's "fecha_proceso" value
 * @method CCG_PRODUCTO_PROYECTO setIdProyectos()          Sets the current record's "id_proyectos" value
 * @method CCG_PRODUCTO_PROYECTO setSgr()                  Sets the current record's "sgr" value
 * @method CCG_PRODUCTO_PROYECTO setIdCatalogo()           Sets the current record's "id_catalogo" value
 * @method CCG_PRODUCTO_PROYECTO setIdClase()              Sets the current record's "id_clase" value
 * @method CCG_PRODUCTO_PROYECTO setIdLinea()              Sets the current record's "id_linea" value
 * @method CCG_PRODUCTO_PROYECTO setCantidad()             Sets the current record's "cantidad" value
 * @method CCG_PRODUCTO_PROYECTO setPorcentaje()           Sets the current record's "porcentaje" value
 * @method CCG_PRODUCTO_PROYECTO setValor()                Sets the current record's "valor" value
 * @method CCG_PRODUCTO_PROYECTO setIdTsTd()               Sets the current record's "id_ts_td" value
 * @method CCG_PRODUCTO_PROYECTO setDocSoporte()           Sets the current record's "doc_soporte" value
 * @method CCG_PRODUCTO_PROYECTO setFechaSoporte()         Sets the current record's "fecha_soporte" value
 * @method CCG_PRODUCTO_PROYECTO setObservaciones()        Sets the current record's "observaciones" value
 * @method CCG_PRODUCTO_PROYECTO setUsuario()              Sets the current record's "usuario" value
 * @method CCG_PRODUCTO_PROYECTO setANHOS()                Sets the current record's "ANHOS" value
 * @method CCG_PRODUCTO_PROYECTO setMESES()                Sets the current record's "MESES" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO()           Sets the current record's "IN_CATALOGO" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO4()          Sets the current record's "IN_CATALOGO_4" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO5()          Sets the current record's "IN_CATALOGO_5" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO6()          Sets the current record's "IN_CATALOGO_6" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO7()          Sets the current record's "IN_CATALOGO_7" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO8()          Sets the current record's "IN_CATALOGO_8" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO9()          Sets the current record's "IN_CATALOGO_9" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO10()         Sets the current record's "IN_CATALOGO_10" value
 * @method CCG_PRODUCTO_PROYECTO setINCATALOGO11()         Sets the current record's "IN_CATALOGO_11" value
 * @method CCG_PRODUCTO_PROYECTO setTSTD()                 Sets the current record's "TS_TD" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCCG_PRODUCTO_PROYECTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CCG_PRODUCTO_PROYECTO');
        $this->hasColumn('id_producto_proyecto', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_proyectos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('sgr', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cantidad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('porcentaje', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_td', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('doc_soporte', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('fecha_soporte', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('usuario', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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

        $this->hasOne('MESES', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));

        $this->hasOne('IN_CATALOGO', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_4', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_5', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_6', array(
             'local' => 'id_clase',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_7', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_8', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_9', array(
             'local' => 'id_linea',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_10', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_11', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('TS_TD', array(
             'local' => 'id_ts_td',
             'foreign' => 'id'));
    }
}