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

/**
 * BaseRVC_NOVEDAD_SUPR_APOY
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_supr_apoy
 * @property integer $id_contrato
 * @property timestamp $fecha
 * @property string $numero_doc
 * @property string $fecha_doc
 * @property string $observaciones
 * @property integer $id_supervisor_old
 * @property integer $id_apoyo_supervisor_old
 * @property integer $id_supervisor_new
 * @property integer $id_apoyo_supervisor_new
 * @property string $usuario_log
 * @property timestamp $fecha_log
 * @property RVC_CONTRATO $RVC_CONTRATO
 * @property RVC_SUPERVISOR $RVC_SUPERVISOR
 * @property RVC_SUPERVISOR $RVC_SUPERVISOR_3
 * @property RVC_APOYO_SUPERVISOR $RVC_APOYO_SUPERVISOR
 * @property RVC_APOYO_SUPERVISOR $RVC_APOYO_SUPERVISOR_5
 * 
 * @method integer               getIdNovedadSuprApoy()       Returns the current record's "id_novedad_supr_apoy" value
 * @method integer               getIdContrato()              Returns the current record's "id_contrato" value
 * @method timestamp             getFecha()                   Returns the current record's "fecha" value
 * @method string                getNumeroDoc()               Returns the current record's "numero_doc" value
 * @method string                getFechaDoc()                Returns the current record's "fecha_doc" value
 * @method string                getObservaciones()           Returns the current record's "observaciones" value
 * @method integer               getIdSupervisorOld()         Returns the current record's "id_supervisor_old" value
 * @method integer               getIdApoyoSupervisorOld()    Returns the current record's "id_apoyo_supervisor_old" value
 * @method integer               getIdSupervisorNew()         Returns the current record's "id_supervisor_new" value
 * @method integer               getIdApoyoSupervisorNew()    Returns the current record's "id_apoyo_supervisor_new" value
 * @method string                getUsuarioLog()              Returns the current record's "usuario_log" value
 * @method timestamp             getFechaLog()                Returns the current record's "fecha_log" value
 * @method RVC_CONTRATO          getRVCCONTRATO()             Returns the current record's "RVC_CONTRATO" value
 * @method RVC_SUPERVISOR        getRVCSUPERVISOR()           Returns the current record's "RVC_SUPERVISOR" value
 * @method RVC_SUPERVISOR        getRVCSUPERVISOR3()          Returns the current record's "RVC_SUPERVISOR_3" value
 * @method RVC_APOYO_SUPERVISOR  getRVCAPOYOSUPERVISOR()      Returns the current record's "RVC_APOYO_SUPERVISOR" value
 * @method RVC_APOYO_SUPERVISOR  getRVCAPOYOSUPERVISOR5()     Returns the current record's "RVC_APOYO_SUPERVISOR_5" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdNovedadSuprApoy()       Sets the current record's "id_novedad_supr_apoy" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdContrato()              Sets the current record's "id_contrato" value
 * @method RVC_NOVEDAD_SUPR_APOY setFecha()                   Sets the current record's "fecha" value
 * @method RVC_NOVEDAD_SUPR_APOY setNumeroDoc()               Sets the current record's "numero_doc" value
 * @method RVC_NOVEDAD_SUPR_APOY setFechaDoc()                Sets the current record's "fecha_doc" value
 * @method RVC_NOVEDAD_SUPR_APOY setObservaciones()           Sets the current record's "observaciones" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdSupervisorOld()         Sets the current record's "id_supervisor_old" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdApoyoSupervisorOld()    Sets the current record's "id_apoyo_supervisor_old" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdSupervisorNew()         Sets the current record's "id_supervisor_new" value
 * @method RVC_NOVEDAD_SUPR_APOY setIdApoyoSupervisorNew()    Sets the current record's "id_apoyo_supervisor_new" value
 * @method RVC_NOVEDAD_SUPR_APOY setUsuarioLog()              Sets the current record's "usuario_log" value
 * @method RVC_NOVEDAD_SUPR_APOY setFechaLog()                Sets the current record's "fecha_log" value
 * @method RVC_NOVEDAD_SUPR_APOY setRVCCONTRATO()             Sets the current record's "RVC_CONTRATO" value
 * @method RVC_NOVEDAD_SUPR_APOY setRVCSUPERVISOR()           Sets the current record's "RVC_SUPERVISOR" value
 * @method RVC_NOVEDAD_SUPR_APOY setRVCSUPERVISOR3()          Sets the current record's "RVC_SUPERVISOR_3" value
 * @method RVC_NOVEDAD_SUPR_APOY setRVCAPOYOSUPERVISOR()      Sets the current record's "RVC_APOYO_SUPERVISOR" value
 * @method RVC_NOVEDAD_SUPR_APOY setRVCAPOYOSUPERVISOR5()     Sets the current record's "RVC_APOYO_SUPERVISOR_5" value
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRVC_NOVEDAD_SUPR_APOY extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NOVEDAD_SUPR_APOY');
        $this->hasColumn('id_novedad_supr_apoy', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('numero_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('id_supervisor_old', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_apoyo_supervisor_old', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_supervisor_new', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_apoyo_supervisor_new', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasOne('RVC_SUPERVISOR', array(
             'local' => 'id_supervisor_old',
             'foreign' => 'id_supervisor'));

        $this->hasOne('RVC_SUPERVISOR as RVC_SUPERVISOR_3', array(
             'local' => 'id_supervisor_new',
             'foreign' => 'id_supervisor'));

        $this->hasOne('RVC_APOYO_SUPERVISOR', array(
             'local' => 'id_apoyo_supervisor_old',
             'foreign' => 'id_apoyo_supervisor'));

        $this->hasOne('RVC_APOYO_SUPERVISOR as RVC_APOYO_SUPERVISOR_5', array(
             'local' => 'id_apoyo_supervisor_new',
             'foreign' => 'id_apoyo_supervisor'));
    }
}