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

/**
 * BaseEJE_DESARROLLO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_eje
 * @property string $descripcion
 * @property string $titulo
 * @property integer $id_componente
 * @property COMPONENTE $COMPONENTE
 * @property Doctrine_Collection $TEMATICA
 * 
 * @method integer             getIdEje()         Returns the current record's "id_eje" value
 * @method string              getDescripcion()   Returns the current record's "descripcion" value
 * @method string              getTitulo()        Returns the current record's "titulo" value
 * @method integer             getIdComponente()  Returns the current record's "id_componente" value
 * @method COMPONENTE          getCOMPONENTE()    Returns the current record's "COMPONENTE" value
 * @method Doctrine_Collection getTEMATICA()      Returns the current record's "TEMATICA" collection
 * @method EJE_DESARROLLO      setIdEje()         Sets the current record's "id_eje" value
 * @method EJE_DESARROLLO      setDescripcion()   Sets the current record's "descripcion" value
 * @method EJE_DESARROLLO      setTitulo()        Sets the current record's "titulo" value
 * @method EJE_DESARROLLO      setIdComponente()  Sets the current record's "id_componente" value
 * @method EJE_DESARROLLO      setCOMPONENTE()    Sets the current record's "COMPONENTE" value
 * @method EJE_DESARROLLO      setTEMATICA()      Sets the current record's "TEMATICA" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseEJE_DESARROLLO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('EJE_DESARROLLO');
        $this->hasColumn('id_eje', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('titulo', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_componente', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('TEMATICA', array(
             'local' => 'id_eje',
             'foreign' => 'id_eje'));
    }
}