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

/**
 * BaseNO_CONSULTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_consulta
 * @property string $nombre
 * @property string $consulta
 * @property string $caracter
 * @property Doctrine_Collection $NO_AGRUP_DETA
 * 
 * @method integer             getIdConsulta()    Returns the current record's "id_consulta" value
 * @method string              getNombre()        Returns the current record's "nombre" value
 * @method string              getConsulta()      Returns the current record's "consulta" value
 * @method string              getCaracter()      Returns the current record's "caracter" value
 * @method Doctrine_Collection getNOAGRUPDETA()   Returns the current record's "NO_AGRUP_DETA" collection
 * @method NO_CONSULTA         setIdConsulta()    Sets the current record's "id_consulta" value
 * @method NO_CONSULTA         setNombre()        Sets the current record's "nombre" value
 * @method NO_CONSULTA         setConsulta()      Sets the current record's "consulta" value
 * @method NO_CONSULTA         setCaracter()      Sets the current record's "caracter" value
 * @method NO_CONSULTA         setNOAGRUPDETA()   Sets the current record's "NO_AGRUP_DETA" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_CONSULTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CONSULTA');
        $this->hasColumn('id_consulta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 64, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('consulta', 'string', 2048, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2048,
             ));
        $this->hasColumn('caracter', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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