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

/**
 * BaseTIPO_EXPERIENCIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_experiencia
 * @property string $descripcion
 * @property Doctrine_Collection $EXPERIENCIA_LABORAL
 * 
 * @method integer             getIdTipoExperiencia()   Returns the current record's "id_tipo_experiencia" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method Doctrine_Collection getEXPERIENCIALABORAL()  Returns the current record's "EXPERIENCIA_LABORAL" collection
 * @method TIPO_EXPERIENCIA    setIdTipoExperiencia()   Sets the current record's "id_tipo_experiencia" value
 * @method TIPO_EXPERIENCIA    setDescripcion()         Sets the current record's "descripcion" value
 * @method TIPO_EXPERIENCIA    setEXPERIENCIALABORAL()  Sets the current record's "EXPERIENCIA_LABORAL" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPO_EXPERIENCIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_EXPERIENCIA');
        $this->hasColumn('id_tipo_experiencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 40, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 40,
             ));
    }

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