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

/**
 * BaseTS_TIP_ORG_EMP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_org
 * @property string $descripcion
 * @property Doctrine_Collection $INTERCER_DG_JUR
 * 
 * @method integer             getIdTipOrg()        Returns the current record's "id_tip_org" 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_ORG_EMP      setIdTipOrg()        Sets the current record's "id_tip_org" value
 * @method TS_TIP_ORG_EMP      setDescripcion()     Sets the current record's "descripcion" value
 * @method TS_TIP_ORG_EMP      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_ORG_EMP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_ORG_EMP');
        $this->hasColumn('id_tip_org', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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