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

/**
 * BaseCOMPONENTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_componente
 * @property string $nombre
 * @property string $descripcion
 * @property Doctrine_Collection $EJE_DESARROLLO
 * @property Doctrine_Collection $ACTIVIDAD_FORMACION
 * 
 * @method integer             getIdComponente()        Returns the current record's "id_componente" value
 * @method string              getNombre()              Returns the current record's "nombre" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method Doctrine_Collection getEJEDESARROLLO()       Returns the current record's "EJE_DESARROLLO" collection
 * @method Doctrine_Collection getACTIVIDADFORMACION()  Returns the current record's "ACTIVIDAD_FORMACION" collection
 * @method COMPONENTE          setIdComponente()        Sets the current record's "id_componente" value
 * @method COMPONENTE          setNombre()              Sets the current record's "nombre" value
 * @method COMPONENTE          setDescripcion()         Sets the current record's "descripcion" value
 * @method COMPONENTE          setEJEDESARROLLO()       Sets the current record's "EJE_DESARROLLO" collection
 * @method COMPONENTE          setACTIVIDADFORMACION()  Sets the current record's "ACTIVIDAD_FORMACION" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOMPONENTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COMPONENTE');
        $this->hasColumn('id_componente', 'integer', 10, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 10,
             ));
        $this->hasColumn('nombre', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
    }

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

        $this->hasMany('ACTIVIDAD_FORMACION', array(
             'local' => 'id_componente',
             'foreign' => 'id_componente'));
    }
}