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

/**
 * BaseTS_TIP_ADM
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_adm
 * @property string $descripcion
 * @property Doctrine_Collection $INTERCER_DG_JUR
 * 
 * @method integer             getIdTipAdm()        Returns the current record's "id_tip_adm" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method Doctrine_Collection getINTERCERDGJUR()   Returns the current record's "INTERCER_DG_JUR" collection
 * @method TS_TIP_ADM          setIdTipAdm()        Sets the current record's "id_tip_adm" value
 * @method TS_TIP_ADM          setDescripcion()     Sets the current record's "descripcion" value
 * @method TS_TIP_ADM          setINTERCERDGJUR()   Sets the current record's "INTERCER_DG_JUR" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_TIP_ADM extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_ADM');
        $this->hasColumn('id_tip_adm', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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