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

/**
 * BaseTEMATICA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tematica
 * @property string $descripcion
 * @property integer $id_dimension
 * @property integer $id_eje
 * @property DIMENSION $DIMENSION
 * @property EJE_DESARROLLO $EJE_DESARROLLO
 * @property Doctrine_Collection $NECESIDAD_TEMATICA
 * 
 * @method integer             getIdTematica()         Returns the current record's "id_tematica" value
 * @method string              getDescripcion()        Returns the current record's "descripcion" value
 * @method integer             getIdDimension()        Returns the current record's "id_dimension" value
 * @method integer             getIdEje()              Returns the current record's "id_eje" value
 * @method DIMENSION           getDIMENSION()          Returns the current record's "DIMENSION" value
 * @method EJE_DESARROLLO      getEJEDESARROLLO()      Returns the current record's "EJE_DESARROLLO" value
 * @method Doctrine_Collection getNECESIDADTEMATICA()  Returns the current record's "NECESIDAD_TEMATICA" collection
 * @method TEMATICA            setIdTematica()         Sets the current record's "id_tematica" value
 * @method TEMATICA            setDescripcion()        Sets the current record's "descripcion" value
 * @method TEMATICA            setIdDimension()        Sets the current record's "id_dimension" value
 * @method TEMATICA            setIdEje()              Sets the current record's "id_eje" value
 * @method TEMATICA            setDIMENSION()          Sets the current record's "DIMENSION" value
 * @method TEMATICA            setEJEDESARROLLO()      Sets the current record's "EJE_DESARROLLO" value
 * @method TEMATICA            setNECESIDADTEMATICA()  Sets the current record's "NECESIDAD_TEMATICA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTEMATICA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TEMATICA');
        $this->hasColumn('id_tematica', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_dimension', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_eje', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('EJE_DESARROLLO', array(
             'local' => 'id_eje',
             'foreign' => 'id_eje'));

        $this->hasMany('NECESIDAD_TEMATICA', array(
             'local' => 'id_tematica',
             'foreign' => 'id_tematica'));
    }
}