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

/**
 * BaseRMN_SOLICITUD_PERSONA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_solicitud_persona
 * @property timestamp $fecha_inicial
 * @property timestamp $fecha_final
 * @property string $estado
 * @property integer $id_solicitud
 * @property integer $id_persona
 * @property integer $id_tipo_rol_persona
 * @property timestamp $fecha_firma_contrato
 * @property RMN_SOLICITUD $RMN_SOLICITUD
 * @property RMN_PERSONA $RMN_PERSONA
 * @property RMN_TIPO_ROL_PERSONA $RMN_TIPO_ROL_PERSONA
 * 
 * @method integer               getIdSolicitudPersona()   Returns the current record's "id_solicitud_persona" value
 * @method timestamp             getFechaInicial()         Returns the current record's "fecha_inicial" value
 * @method timestamp             getFechaFinal()           Returns the current record's "fecha_final" value
 * @method string                getEstado()               Returns the current record's "estado" value
 * @method integer               getIdSolicitud()          Returns the current record's "id_solicitud" value
 * @method integer               getIdPersona()            Returns the current record's "id_persona" value
 * @method integer               getIdTipoRolPersona()     Returns the current record's "id_tipo_rol_persona" value
 * @method timestamp             getFechaFirmaContrato()   Returns the current record's "fecha_firma_contrato" value
 * @method RMN_SOLICITUD         getRMNSOLICITUD()         Returns the current record's "RMN_SOLICITUD" value
 * @method RMN_PERSONA           getRMNPERSONA()           Returns the current record's "RMN_PERSONA" value
 * @method RMN_TIPO_ROL_PERSONA  getRMNTIPOROLPERSONA()    Returns the current record's "RMN_TIPO_ROL_PERSONA" value
 * @method RMN_SOLICITUD_PERSONA setIdSolicitudPersona()   Sets the current record's "id_solicitud_persona" value
 * @method RMN_SOLICITUD_PERSONA setFechaInicial()         Sets the current record's "fecha_inicial" value
 * @method RMN_SOLICITUD_PERSONA setFechaFinal()           Sets the current record's "fecha_final" value
 * @method RMN_SOLICITUD_PERSONA setEstado()               Sets the current record's "estado" value
 * @method RMN_SOLICITUD_PERSONA setIdSolicitud()          Sets the current record's "id_solicitud" value
 * @method RMN_SOLICITUD_PERSONA setIdPersona()            Sets the current record's "id_persona" value
 * @method RMN_SOLICITUD_PERSONA setIdTipoRolPersona()     Sets the current record's "id_tipo_rol_persona" value
 * @method RMN_SOLICITUD_PERSONA setFechaFirmaContrato()   Sets the current record's "fecha_firma_contrato" value
 * @method RMN_SOLICITUD_PERSONA setRMNSOLICITUD()         Sets the current record's "RMN_SOLICITUD" value
 * @method RMN_SOLICITUD_PERSONA setRMNPERSONA()           Sets the current record's "RMN_PERSONA" value
 * @method RMN_SOLICITUD_PERSONA setRMNTIPOROLPERSONA()    Sets the current record's "RMN_TIPO_ROL_PERSONA" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRMN_SOLICITUD_PERSONA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_SOLICITUD_PERSONA');
        $this->hasColumn('id_solicitud_persona', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('fecha_inicial', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'sysdate ',
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_final', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_solicitud', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_persona', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_rol_persona', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('fecha_firma_contrato', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasOne('RMN_PERSONA', array(
             'local' => 'id_persona',
             'foreign' => 'id_persona'));

        $this->hasOne('RMN_TIPO_ROL_PERSONA', array(
             'local' => 'id_tipo_rol_persona',
             'foreign' => 'id_tipo_rol_persona'));
    }
}