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

/**
 * BaseRVC_DECLARA_JURA_NOV
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_declara_jura_nov
 * @property integer $id_contratista
 * @property timestamp $fecha
 * @property integer $dependiente
 * @property string $id_tipo_condiciones
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property string $observaciones
 * @property string $usuario_log
 * @property timestamp $fecha_log
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property Doctrine_Collection $RVC_DECLARA_JURA_NOVDET
 * 
 * @method integer              getIdDeclaraJuraNov()        Returns the current record's "id_declara_jura_nov" value
 * @method integer              getIdContratista()           Returns the current record's "id_contratista" value
 * @method timestamp            getFecha()                   Returns the current record's "fecha" value
 * @method integer              getDependiente()             Returns the current record's "dependiente" value
 * @method string               getIdTipoCondiciones()       Returns the current record's "id_tipo_condiciones" 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 string               getUsuarioLog()              Returns the current record's "usuario_log" value
 * @method timestamp            getFechaLog()                Returns the current record's "fecha_log" value
 * @method RVC_CONTRATISTA      getRVCCONTRATISTA()          Returns the current record's "RVC_CONTRATISTA" value
 * @method Doctrine_Collection  getRVCDECLARAJURANOVDET()    Returns the current record's "RVC_DECLARA_JURA_NOVDET" collection
 * @method RVC_DECLARA_JURA_NOV setIdDeclaraJuraNov()        Sets the current record's "id_declara_jura_nov" value
 * @method RVC_DECLARA_JURA_NOV setIdContratista()           Sets the current record's "id_contratista" value
 * @method RVC_DECLARA_JURA_NOV setFecha()                   Sets the current record's "fecha" value
 * @method RVC_DECLARA_JURA_NOV setDependiente()             Sets the current record's "dependiente" value
 * @method RVC_DECLARA_JURA_NOV setIdTipoCondiciones()       Sets the current record's "id_tipo_condiciones" value
 * @method RVC_DECLARA_JURA_NOV setNumeroDoc()               Sets the current record's "numero_doc" value
 * @method RVC_DECLARA_JURA_NOV setFechaDoc()                Sets the current record's "fecha_doc" value
 * @method RVC_DECLARA_JURA_NOV setObservaciones()           Sets the current record's "observaciones" value
 * @method RVC_DECLARA_JURA_NOV setUsuarioLog()              Sets the current record's "usuario_log" value
 * @method RVC_DECLARA_JURA_NOV setFechaLog()                Sets the current record's "fecha_log" value
 * @method RVC_DECLARA_JURA_NOV setRVCCONTRATISTA()          Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_DECLARA_JURA_NOV setRVCDECLARAJURANOVDET()    Sets the current record's "RVC_DECLARA_JURA_NOVDET" 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_DECLARA_JURA_NOV extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_DECLARA_JURA_NOV');
        $this->hasColumn('id_declara_jura_nov', '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('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dependiente', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_condiciones', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $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('usuario_log', 'string', 20, array(
             'notnull' => false,
             '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,
             ));
        $this->hasColumn('firmado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_firmado', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasMany('RVC_DECLARA_JURA_NOVDET', array(
             'local' => 'id_declara_jura_nov',
             'foreign' => 'id_declara_jura_nov'));
    }
}