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

/**
 * BaseCO_PRORROGA_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_prorroga_contrato
 * @property integer $id_contrato
 * @property integer $no_prorroga
 * @property timestamp $fecha_prorroga
 * @property string $adjunto
 * @property string $objeto_prorroga
 * @property string $plazo_total
 * @property string $plazo_terminacion
 * @property string $observaciones
 * @property CO_CONTRATO $CO_CONTRATO
 * 
 * @method integer              getIdProrrogaContrato()   Returns the current record's "id_prorroga_contrato" value
 * @method integer              getIdContrato()           Returns the current record's "id_contrato" value
 * @method integer              getNoProrroga()           Returns the current record's "no_prorroga" value
 * @method timestamp            getFechaProrroga()        Returns the current record's "fecha_prorroga" value
 * @method string               getAdjunto()              Returns the current record's "adjunto" value
 * @method string               getObjetoProrroga()       Returns the current record's "objeto_prorroga" value
 * @method string               getPlazoTotal()           Returns the current record's "plazo_total" value
 * @method string               getPlazoTerminacion()     Returns the current record's "plazo_terminacion" 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_PRORROGA_CONTRATO setIdProrrogaContrato()   Sets the current record's "id_prorroga_contrato" value
 * @method CO_PRORROGA_CONTRATO setIdContrato()           Sets the current record's "id_contrato" value
 * @method CO_PRORROGA_CONTRATO setNoProrroga()           Sets the current record's "no_prorroga" value
 * @method CO_PRORROGA_CONTRATO setFechaProrroga()        Sets the current record's "fecha_prorroga" value
 * @method CO_PRORROGA_CONTRATO setAdjunto()              Sets the current record's "adjunto" value
 * @method CO_PRORROGA_CONTRATO setObjetoProrroga()       Sets the current record's "objeto_prorroga" value
 * @method CO_PRORROGA_CONTRATO setPlazoTotal()           Sets the current record's "plazo_total" value
 * @method CO_PRORROGA_CONTRATO setPlazoTerminacion()     Sets the current record's "plazo_terminacion" value
 * @method CO_PRORROGA_CONTRATO setObservaciones()        Sets the current record's "observaciones" value
 * @method CO_PRORROGA_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_PRORROGA_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_PRORROGA_CONTRATO');
        $this->hasColumn('id_prorroga_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('no_prorroga', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_prorroga', 'timestamp', 7, array(
             'notnull' => true,
             '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('objeto_prorroga', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('plazo_total', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('plazo_terminacion', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('observaciones', 'string', 4000, array(
             'notnull' => true,
             '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'));
    }
}