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

/**
 * BaseRVC_CONTRA_CUESTIONARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_contra_cuestionario
 * @property integer $id_contratista
 * @property integer $id_cuestionario
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property integer $estado
 * @property Doctrine_Collection $RVC_RESP_CONTRA_CUESTION
 * 
 * @method integer                 getIdContraCuestionario()     Returns the current record's "id_contra_cuestionario" value
 * @method integer                 getIdContratista()            Returns the current record's "id_contratista" value
 * @method integer                 getIdCuestionario()           Returns the current record's "id_cuestionario" value
 * @method timestamp               getFechaLog()                 Returns the current record's "fecha_log" value
 * @method string                  getUsuarioLog()               Returns the current record's "usuario_log" value
 * @method integer                 getEstado()                   Returns the current record's "estado" value
 * @method Doctrine_Collection     getRVCRESPCONTRACUESTION()    Returns the current record's "RVC_RESP_CONTRA_CUESTION" collection
 * @method RVC_CONTRA_CUESTIONARIO setIdContraCuestionario()     Sets the current record's "id_contra_cuestionario" value
 * @method RVC_CONTRA_CUESTIONARIO setIdContratista()            Sets the current record's "id_contratista" value
 * @method RVC_CONTRA_CUESTIONARIO setIdCuestionario()           Sets the current record's "id_cuestionario" value
 * @method RVC_CONTRA_CUESTIONARIO setFechaLog()                 Sets the current record's "fecha_log" value
 * @method RVC_CONTRA_CUESTIONARIO setUsuarioLog()               Sets the current record's "usuario_log" value
 * @method RVC_CONTRA_CUESTIONARIO setEstado()                   Sets the current record's "estado" value
 * @method RVC_CONTRA_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_CONTRA_CUESTIONARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_CONTRA_CUESTIONARIO');
        $this->hasColumn('id_contra_cuestionario', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contratista', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cuestionario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'sysdate ',
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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->hasMany('RVC_RESP_CONTRA_CUESTION', array(
             'local' => 'id_contra_cuestionario',
             'foreign' => 'id_contra_cuestionario'));
    }
}