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

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

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