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

/**
 * BaseINTERCER_DT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_inf_tri
 * @property integer $id_mae_ter
 * @property integer $ciiu_prin
 * @property integer $ciiu_sec
 * @property integer $ciiu_ter
 * @property integer $ciiu_cua
 * @property string $path_rup
 * @property string $path_doc
 * @property INTERCEROS $INTERCEROS
 * @property TS_AE_CIIU $TS_AE_CIIU
 * @property TS_AE_CIIU $TS_AE_CIIU_3
 * @property TS_AE_CIIU $TS_AE_CIIU_4
 * @property TS_AE_CIIU $TS_AE_CIIU_5
 * @property Doctrine_Collection $TS_RES_TRI
 * 
 * @method integer             getIdInfTri()     Returns the current record's "id_inf_tri" value
 * @method integer             getIdMaeTer()     Returns the current record's "id_mae_ter" value
 * @method integer             getCiiuPrin()     Returns the current record's "ciiu_prin" value
 * @method integer             getCiiuSec()      Returns the current record's "ciiu_sec" value
 * @method integer             getCiiuTer()      Returns the current record's "ciiu_ter" value
 * @method integer             getCiiuCua()      Returns the current record's "ciiu_cua" value
 * @method string              getPathRup()      Returns the current record's "path_rup" value
 * @method string              getPathDoc()      Returns the current record's "path_doc" value
 * @method INTERCEROS          getINTERCEROS()   Returns the current record's "INTERCEROS" value
 * @method TS_AE_CIIU          getTSAECIIU()     Returns the current record's "TS_AE_CIIU" value
 * @method TS_AE_CIIU          getTSAECIIU3()    Returns the current record's "TS_AE_CIIU_3" value
 * @method TS_AE_CIIU          getTSAECIIU4()    Returns the current record's "TS_AE_CIIU_4" value
 * @method TS_AE_CIIU          getTSAECIIU5()    Returns the current record's "TS_AE_CIIU_5" value
 * @method Doctrine_Collection getTSRESTRI()     Returns the current record's "TS_RES_TRI" collection
 * @method INTERCER_DT         setIdInfTri()     Sets the current record's "id_inf_tri" value
 * @method INTERCER_DT         setIdMaeTer()     Sets the current record's "id_mae_ter" value
 * @method INTERCER_DT         setCiiuPrin()     Sets the current record's "ciiu_prin" value
 * @method INTERCER_DT         setCiiuSec()      Sets the current record's "ciiu_sec" value
 * @method INTERCER_DT         setCiiuTer()      Sets the current record's "ciiu_ter" value
 * @method INTERCER_DT         setCiiuCua()      Sets the current record's "ciiu_cua" value
 * @method INTERCER_DT         setPathRup()      Sets the current record's "path_rup" value
 * @method INTERCER_DT         setPathDoc()      Sets the current record's "path_doc" value
 * @method INTERCER_DT         setINTERCEROS()   Sets the current record's "INTERCEROS" value
 * @method INTERCER_DT         setTSAECIIU()     Sets the current record's "TS_AE_CIIU" value
 * @method INTERCER_DT         setTSAECIIU3()    Sets the current record's "TS_AE_CIIU_3" value
 * @method INTERCER_DT         setTSAECIIU4()    Sets the current record's "TS_AE_CIIU_4" value
 * @method INTERCER_DT         setTSAECIIU5()    Sets the current record's "TS_AE_CIIU_5" value
 * @method INTERCER_DT         setTSRESTRI()     Sets the current record's "TS_RES_TRI" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCER_DT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_DT');
        $this->hasColumn('id_inf_tri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciiu_prin', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciiu_sec', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciiu_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciiu_cua', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('path_rup', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('path_doc', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasOne('TS_AE_CIIU', array(
             'local' => 'ciiu_prin',
             'foreign' => 'id_ae_ciiu'));

        $this->hasOne('TS_AE_CIIU as TS_AE_CIIU_3', array(
             'local' => 'ciiu_sec',
             'foreign' => 'id_ae_ciiu'));

        $this->hasOne('TS_AE_CIIU as TS_AE_CIIU_4', array(
             'local' => 'ciiu_ter',
             'foreign' => 'id_ae_ciiu'));

        $this->hasOne('TS_AE_CIIU as TS_AE_CIIU_5', array(
             'local' => 'ciiu_cua',
             'foreign' => 'id_ae_ciiu'));

        $this->hasMany('TS_RES_TRI', array(
             'local' => 'id_inf_tri',
             'foreign' => 'id_inf_tri'));
    }
}