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

/**
 * BaseRVC_NOVEDAD_CESION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_cesion
 * @property integer $id_contrato
 * @property timestamp $fecha
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property string $observaciones
 * @property timestamp $fecha_cesion
 * @property string $adjunto
 * @property integer $id_contratista_old
 * @property integer $rp_anm_old
 * @property integer $rp_sgr_old
 * @property timestamp $fecha_rp_old
 * @property integer $id_contratista_new
 * @property integer $rp_anm_new
 * @property integer $rp_sgr_new
 * @property timestamp $fecha_rp_new
 * @property string $usuario_log
 * @property timestamp $fecha_log
 * @property RVC_CONTRATO $RVC_CONTRATO
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA_3
 * 
 * @method integer            getIdNovedadCesion()    Returns the current record's "id_novedad_cesion" 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 timestamp          getFechaDoc()           Returns the current record's "fecha_doc" value
 * @method string             getObservaciones()      Returns the current record's "observaciones" value
 * @method timestamp          getFechaCesion()        Returns the current record's "fecha_cesion" value
 * @method string             getAdjunto()            Returns the current record's "adjunto" value
 * @method integer            getIdContratistaOld()   Returns the current record's "id_contratista_old" value
 * @method integer            getRpAnmOld()           Returns the current record's "rp_anm_old" value
 * @method integer            getRpSgrOld()           Returns the current record's "rp_sgr_old" value
 * @method timestamp          getFechaRpOld()         Returns the current record's "fecha_rp_old" value
 * @method integer            getIdContratistaNew()   Returns the current record's "id_contratista_new" value
 * @method integer            getRpAnmNew()           Returns the current record's "rp_anm_new" value
 * @method integer            getRpSgrNew()           Returns the current record's "rp_sgr_new" value
 * @method timestamp          getFechaRpNew()         Returns the current record's "fecha_rp_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_CONTRATISTA    getRVCCONTRATISTA()     Returns the current record's "RVC_CONTRATISTA" value
 * @method RVC_CONTRATISTA    getRVCCONTRATISTA3()    Returns the current record's "RVC_CONTRATISTA_3" value
 * @method RVC_NOVEDAD_CESION setIdNovedadCesion()    Sets the current record's "id_novedad_cesion" value
 * @method RVC_NOVEDAD_CESION setIdContrato()         Sets the current record's "id_contrato" value
 * @method RVC_NOVEDAD_CESION setFecha()              Sets the current record's "fecha" value
 * @method RVC_NOVEDAD_CESION setNumeroDoc()          Sets the current record's "numero_doc" value
 * @method RVC_NOVEDAD_CESION setFechaDoc()           Sets the current record's "fecha_doc" value
 * @method RVC_NOVEDAD_CESION setObservaciones()      Sets the current record's "observaciones" value
 * @method RVC_NOVEDAD_CESION setFechaCesion()        Sets the current record's "fecha_cesion" value
 * @method RVC_NOVEDAD_CESION setAdjunto()            Sets the current record's "adjunto" value
 * @method RVC_NOVEDAD_CESION setIdContratistaOld()   Sets the current record's "id_contratista_old" value
 * @method RVC_NOVEDAD_CESION setRpAnmOld()           Sets the current record's "rp_anm_old" value
 * @method RVC_NOVEDAD_CESION setRpSgrOld()           Sets the current record's "rp_sgr_old" value
 * @method RVC_NOVEDAD_CESION setFechaRpOld()         Sets the current record's "fecha_rp_old" value
 * @method RVC_NOVEDAD_CESION setIdContratistaNew()   Sets the current record's "id_contratista_new" value
 * @method RVC_NOVEDAD_CESION setRpAnmNew()           Sets the current record's "rp_anm_new" value
 * @method RVC_NOVEDAD_CESION setRpSgrNew()           Sets the current record's "rp_sgr_new" value
 * @method RVC_NOVEDAD_CESION setFechaRpNew()         Sets the current record's "fecha_rp_new" value
 * @method RVC_NOVEDAD_CESION setUsuarioLog()         Sets the current record's "usuario_log" value
 * @method RVC_NOVEDAD_CESION setFechaLog()           Sets the current record's "fecha_log" value
 * @method RVC_NOVEDAD_CESION setRVCCONTRATO()        Sets the current record's "RVC_CONTRATO" value
 * @method RVC_NOVEDAD_CESION setRVCCONTRATISTA()     Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_NOVEDAD_CESION setRVCCONTRATISTA3()    Sets the current record's "RVC_CONTRATISTA_3" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_NOVEDAD_CESION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NOVEDAD_CESION');
        $this->hasColumn('id_novedad_cesion', '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('fecha_cesion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_contratista_old', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_anm_old', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_sgr_old', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_rp_old', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_contratista_new', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_anm_new', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('rp_sgr_new', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_rp_new', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             '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('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             '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_CONTRATISTA', array(
             'local' => 'id_contratista_old',
             'foreign' => 'id_contratista'));

        $this->hasOne('RVC_CONTRATISTA as RVC_CONTRATISTA_3', array(
             'local' => 'id_contratista_new',
             'foreign' => 'id_contratista'));
    }
}