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

/**
 * BaseNECESIDAD_TEMATICA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nec_tem
 * @property integer $id_necesidad
 * @property integer $id_tematica
 * @property TEMATICA $TEMATICA
 * 
 * @method integer            getIdNecTem()     Returns the current record's "id_nec_tem" value
 * @method integer            getIdNecesidad()  Returns the current record's "id_necesidad" value
 * @method integer            getIdTematica()   Returns the current record's "id_tematica" value
 * @method TEMATICA           getTEMATICA()     Returns the current record's "TEMATICA" value
 * @method NECESIDAD_TEMATICA setIdNecTem()     Sets the current record's "id_nec_tem" value
 * @method NECESIDAD_TEMATICA setIdNecesidad()  Sets the current record's "id_necesidad" value
 * @method NECESIDAD_TEMATICA setIdTematica()   Sets the current record's "id_tematica" value
 * @method NECESIDAD_TEMATICA setTEMATICA()     Sets the current record's "TEMATICA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNECESIDAD_TEMATICA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NECESIDAD_TEMATICA');
        $this->hasColumn('id_nec_tem', 'integer', 10, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 10,
             ));
        $this->hasColumn('id_necesidad', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_tematica', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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