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

/**
 * BaseTS_TIP_REP_LEG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_rep
 * @property string $descripcion
 * @property Doctrine_Collection $INTERCER_DG_JUR
 * 
 * @method integer             getIdTipRep()        Returns the current record's "id_tip_rep" 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_REP_LEG      setIdTipRep()        Sets the current record's "id_tip_rep" value
 * @method TS_TIP_REP_LEG      setDescripcion()     Sets the current record's "descripcion" value
 * @method TS_TIP_REP_LEG      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_REP_LEG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_REP_LEG');
        $this->hasColumn('id_tip_rep', '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_rep',
             'foreign' => 'id_tip_rep'));
    }
}