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

/**
 * BaseCO_AMPARO_CONT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_amparo_cont
 * @property integer $id_contrato
 * @property integer $id_garantia_ep
 * @property integer $valor
 * @property timestamp $vigencia_ini
 * @property timestamp $vigencia_fin
 * @property CO_CONTRATO $CO_CONTRATO
 * @property CO_GARANTIA_EP $CO_GARANTIA_EP
 * 
 * @method integer        getIdAmparoCont()   Returns the current record's "id_amparo_cont" value
 * @method integer        getIdContrato()     Returns the current record's "id_contrato" value
 * @method integer        getIdGarantiaEp()   Returns the current record's "id_garantia_ep" value
 * @method integer        getValor()          Returns the current record's "valor" value
 * @method timestamp      getVigenciaIni()    Returns the current record's "vigencia_ini" value
 * @method timestamp      getVigenciaFin()    Returns the current record's "vigencia_fin" value
 * @method CO_CONTRATO    getCOCONTRATO()     Returns the current record's "CO_CONTRATO" value
 * @method CO_GARANTIA_EP getCOGARANTIAEP()   Returns the current record's "CO_GARANTIA_EP" value
 * @method CO_AMPARO_CONT setIdAmparoCont()   Sets the current record's "id_amparo_cont" value
 * @method CO_AMPARO_CONT setIdContrato()     Sets the current record's "id_contrato" value
 * @method CO_AMPARO_CONT setIdGarantiaEp()   Sets the current record's "id_garantia_ep" value
 * @method CO_AMPARO_CONT setValor()          Sets the current record's "valor" value
 * @method CO_AMPARO_CONT setVigenciaIni()    Sets the current record's "vigencia_ini" value
 * @method CO_AMPARO_CONT setVigenciaFin()    Sets the current record's "vigencia_fin" value
 * @method CO_AMPARO_CONT setCOCONTRATO()     Sets the current record's "CO_CONTRATO" value
 * @method CO_AMPARO_CONT setCOGARANTIAEP()   Sets the current record's "CO_GARANTIA_EP" 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_AMPARO_CONT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_AMPARO_CONT');
        $this->hasColumn('id_amparo_cont', '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_garantia_ep', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_ini', '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('amparos', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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

        $this->hasOne('CO_GARANTIA_EP', array(
             'local' => 'id_garantia_ep',
             'foreign' => 'id_garantia_ep'));
    }
}