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

/**
 * BaseCO_SOLICITUD_REINICIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_solicitud_reinicio
 * @property integer $id_contrato
 * @property integer $no_solicitud
 * @property clob $justificacion
 * @property timestamp $fecha_reinicio
 * @property CO_CONTRATO $CO_CONTRATO
 * 
 * @method integer               getIdSolicitudReinicio()   Returns the current record's "id_solicitud_reinicio" value
 * @method integer               getIdContrato()            Returns the current record's "id_contrato" value
 * @method integer               getNoSolicitud()           Returns the current record's "no_solicitud" value
 * @method clob                  getJustificacion()         Returns the current record's "justificacion" value
 * @method timestamp             getFechaReinicio()         Returns the current record's "fecha_reinicio" value
 * @method CO_CONTRATO           getCOCONTRATO()            Returns the current record's "CO_CONTRATO" value
 * @method CO_SOLICITUD_REINICIO setIdSolicitudReinicio()   Sets the current record's "id_solicitud_reinicio" value
 * @method CO_SOLICITUD_REINICIO setIdContrato()            Sets the current record's "id_contrato" value
 * @method CO_SOLICITUD_REINICIO setNoSolicitud()           Sets the current record's "no_solicitud" value
 * @method CO_SOLICITUD_REINICIO setJustificacion()         Sets the current record's "justificacion" value
 * @method CO_SOLICITUD_REINICIO setFechaReinicio()         Sets the current record's "fecha_reinicio" value
 * @method CO_SOLICITUD_REINICIO setCOCONTRATO()            Sets the current record's "CO_CONTRATO" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     SofHouse Ltda.
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCO_SOLICITUD_REINICIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SOLICITUD_REINICIO');
        $this->hasColumn('id_solicitud_reinicio', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_contrato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_solicitud', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('justificacion', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('fecha_reinicio', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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