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

/**
 * BaseRVC_PREGUNTA_CUESTIONARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pregunta
 * @property integer $id_cuestionario
 * @property integer $numero
 * @property string $texto
 * @property integer $si_no
 * @property integer $aplica_obs
 * @property string $texto_obs
 * @property integer $tipo_obs
 * @property integer $estado
 * @property RVC_CUESTIONARIO $RVC_CUESTIONARIO
 * @property Doctrine_Collection $RVC_RESP_CONTRA_CUESTION
 * 
 * @method integer                   getIdPregunta()               Returns the current record's "id_pregunta" value
 * @method integer                   getIdCuestionario()           Returns the current record's "id_cuestionario" value
 * @method integer                   getNumero()                   Returns the current record's "numero" value
 * @method string                    getTexto()                    Returns the current record's "texto" value
 * @method integer                   getSiNo()                     Returns the current record's "si_no" value
 * @method integer                   getAplicaObs()                Returns the current record's "aplica_obs" value
 * @method string                    getTextoObs()                 Returns the current record's "texto_obs" value
 * @method integer                   getTipoObs()                  Returns the current record's "tipo_obs" value
 * @method integer                   getEstado()                   Returns the current record's "estado" value
 * @method RVC_CUESTIONARIO          getRVCCUESTIONARIO()          Returns the current record's "RVC_CUESTIONARIO" value
 * @method Doctrine_Collection       getRVCRESPCONTRACUESTION()    Returns the current record's "RVC_RESP_CONTRA_CUESTION" collection
 * @method RVC_PREGUNTA_CUESTIONARIO setIdPregunta()               Sets the current record's "id_pregunta" value
 * @method RVC_PREGUNTA_CUESTIONARIO setIdCuestionario()           Sets the current record's "id_cuestionario" value
 * @method RVC_PREGUNTA_CUESTIONARIO setNumero()                   Sets the current record's "numero" value
 * @method RVC_PREGUNTA_CUESTIONARIO setTexto()                    Sets the current record's "texto" value
 * @method RVC_PREGUNTA_CUESTIONARIO setSiNo()                     Sets the current record's "si_no" value
 * @method RVC_PREGUNTA_CUESTIONARIO setAplicaObs()                Sets the current record's "aplica_obs" value
 * @method RVC_PREGUNTA_CUESTIONARIO setTextoObs()                 Sets the current record's "texto_obs" value
 * @method RVC_PREGUNTA_CUESTIONARIO setTipoObs()                  Sets the current record's "tipo_obs" value
 * @method RVC_PREGUNTA_CUESTIONARIO setEstado()                   Sets the current record's "estado" value
 * @method RVC_PREGUNTA_CUESTIONARIO setRVCCUESTIONARIO()          Sets the current record's "RVC_CUESTIONARIO" value
 * @method RVC_PREGUNTA_CUESTIONARIO setRVCRESPCONTRACUESTION()    Sets the current record's "RVC_RESP_CONTRA_CUESTION" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_PREGUNTA_CUESTIONARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_PREGUNTA_CUESTIONARIO');
        $this->hasColumn('id_pregunta', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cuestionario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('texto', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('si_no', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('aplica_obs', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('texto_obs', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('tipo_obs', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('RVC_RESP_CONTRA_CUESTION', array(
             'local' => 'id_pregunta',
             'foreign' => 'id_pregunta'));
    }
}