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

/**
 * BaseRH_EN_APLICACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aplicacion
 * @property integer $id_formato
 * @property integer $vigencia
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_fin
 * @property string $observaciones
 * @property integer $estado
 * @property FORMATO $FORMATO
 * 
 * @method integer          getIdAplicacion()  Returns the current record's "id_aplicacion" value
 * @method integer          getIdFormato()     Returns the current record's "id_formato" value
 * @method integer          getVigencia()      Returns the current record's "vigencia" value
 * @method timestamp        getFechaInicio()   Returns the current record's "fecha_inicio" value
 * @method timestamp        getFechaFin()      Returns the current record's "fecha_fin" value
 * @method string           getObservaciones() Returns the current record's "observaciones" value
 * @method integer          getEstado()        Returns the current record's "estado" value
 * @method FORMATO          getFORMATO()       Returns the current record's "FORMATO" value
 * @method RH_EN_APLICACION setIdAplicacion()  Sets the current record's "id_aplicacion" value
 * @method RH_EN_APLICACION setIdFormato()     Sets the current record's "id_formato" value
 * @method RH_EN_APLICACION setVigencia()      Sets the current record's "vigencia" value
 * @method RH_EN_APLICACION setFechaInicio()   Sets the current record's "fecha_inicio" value
 * @method RH_EN_APLICACION setFechaFin()      Sets the current record's "fecha_fin" value
 * @method RH_EN_APLICACION setObservaciones() Sets the current record's "observaciones" value
 * @method RH_EN_APLICACION setEstado()        Sets the current record's "estado" value
 * @method RH_EN_APLICACION setFORMATO()       Sets the current record's "FORMATO" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_EN_APLICACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_EN_APLICACION');
        $this->hasColumn('id_aplicacion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('estado', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
    }

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