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

/**
 * BaseCO_TERMINA_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_termina_contrato
 * @property integer $id_contrato
 * @property integer $id_solicitud_terminacion
 * @property string $adjunto
 * @property timestamp $fecha_terminacion_mutuo
 * @property timestamp $fecha_aprobacion_poliza
 * @property timestamp $fecha_unilateral
 * @property string $observaciones
 * @property CO_CONTRATO $CO_CONTRATO
 * 
 * @method integer             getIdTerminaContrato()        Returns the current record's "id_termina_contrato" value
 * @method integer             getIdContrato()               Returns the current record's "id_contrato" value
 * @method integer             getIdSolicitudTerminacion()   Returns the current record's "id_solicitud_terminacion" value
 * @method string              getAdjunto()                  Returns the current record's "adjunto" value
 * @method timestamp           getFechaTerminacionMutuo()    Returns the current record's "fecha_terminacion_mutuo" value
 * @method timestamp           getFechaAprobacionPoliza()    Returns the current record's "fecha_aprobacion_poliza" value
 * @method timestamp           getFechaUnilateral()          Returns the current record's "fecha_unilateral" value
 * @method string              getObservaciones()            Returns the current record's "observaciones" value
 * @method CO_CONTRATO         getCOCONTRATO()               Returns the current record's "CO_CONTRATO" value
 * @method CO_TERMINA_CONTRATO setIdTerminaContrato()        Sets the current record's "id_termina_contrato" value
 * @method CO_TERMINA_CONTRATO setIdContrato()               Sets the current record's "id_contrato" value
 * @method CO_TERMINA_CONTRATO setIdSolicitudTerminacion()   Sets the current record's "id_solicitud_terminacion" value
 * @method CO_TERMINA_CONTRATO setAdjunto()                  Sets the current record's "adjunto" value
 * @method CO_TERMINA_CONTRATO setFechaTerminacionMutuo()    Sets the current record's "fecha_terminacion_mutuo" value
 * @method CO_TERMINA_CONTRATO setFechaAprobacionPoliza()    Sets the current record's "fecha_aprobacion_poliza" value
 * @method CO_TERMINA_CONTRATO setFechaUnilateral()          Sets the current record's "fecha_unilateral" value
 * @method CO_TERMINA_CONTRATO setObservaciones()            Sets the current record's "observaciones" value
 * @method CO_TERMINA_CONTRATO setCOCONTRATO()               Sets the current record's "CO_CONTRATO" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_TERMINA_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_TERMINA_CONTRATO');
        $this->hasColumn('id_termina_contrato', '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('id_solicitud_terminacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('adjunto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('fecha_terminacion_mutuo', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_aprobacion_poliza', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_unilateral', '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,
             ));
    }

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