<?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 timestamp $fecha_terminacion_mutuo
 * @property timestamp $fecha_unilateral
 * @property string $adjunto
 * @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 timestamp           getFechaTerminacionMutuo()   Returns the current record's "fecha_terminacion_mutuo" value
 * @method timestamp           getFechaUnilateral()         Returns the current record's "fecha_unilateral" value
 * @method string              getAdjunto()                 Returns the current record's "adjunto" 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 setFechaTerminacionMutuo()   Sets the current record's "fecha_terminacion_mutuo" value
 * @method CO_TERMINA_CONTRATO setFechaUnilateral()         Sets the current record's "fecha_unilateral" value
 * @method CO_TERMINA_CONTRATO setAdjunto()                 Sets the current record's "adjunto" 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    cobro_coactivo
 * @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('fecha_terminacion_mutuo', 'timestamp', 7, array(
             'notnull' => false,
             '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('adjunto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $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_contrato',
             'foreign' => 'id_contrato'));
    }
}