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

/**
 * BaseTIPO_SOPORTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_soporte
 * @property string $descripcion
 * @property string $abreviatura
 * @property Doctrine_Collection $TS_SOPORTE_CXP
 * @property Doctrine_Collection $TS_ACT_ADMIN_SOPORTE
 * 
 * @method integer             getIdTipoSoporte()        Returns the current record's "id_tipo_soporte" value
 * @method string              getDescripcion()          Returns the current record's "descripcion" value
 * @method string              getAbreviatura()          Returns the current record's "abreviatura" value
 * @method Doctrine_Collection getTSSOPORTECXP()         Returns the current record's "TS_SOPORTE_CXP" collection
 * @method Doctrine_Collection getTSACTADMINSOPORTE()    Returns the current record's "TS_ACT_ADMIN_SOPORTE" collection
 * @method TIPO_SOPORTE        setIdTipoSoporte()        Sets the current record's "id_tipo_soporte" value
 * @method TIPO_SOPORTE        setDescripcion()          Sets the current record's "descripcion" value
 * @method TIPO_SOPORTE        setAbreviatura()          Sets the current record's "abreviatura" value
 * @method TIPO_SOPORTE        setTSSOPORTECXP()         Sets the current record's "TS_SOPORTE_CXP" collection
 * @method TIPO_SOPORTE        setTSACTADMINSOPORTE()    Sets the current record's "TS_ACT_ADMIN_SOPORTE" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPO_SOPORTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_SOPORTE');
        $this->hasColumn('id_tipo_soporte', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('abreviatura', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('TS_SOPORTE_CXP', array(
             'local' => 'id_tipo_soporte',
             'foreign' => 'id_tipo_soporte'));

        $this->hasMany('TS_ACT_ADMIN_SOPORTE', array(
             'local' => 'id_tipo_soporte',
             'foreign' => 'id_tipo_soporte'));
    }
}