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

/**
 * BaseCO_GARANTIA_EP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_garantia_ep
 * @property integer $id_estudios_previos
 * @property integer $id_garantia
 * @property decimal $porcentaje
 * @property string $valor
 * @property CO_ESTUDIOS_PREVIOS $CO_ESTUDIOS_PREVIOS
 * @property CO_GARANTIA $CO_GARANTIA
 * @property Doctrine_Collection $CO_AMPARO_CONT
 * 
 * @method integer             getIdGarantiaEp()        Returns the current record's "id_garantia_ep" value
 * @method integer             getIdEstudiosPrevios()   Returns the current record's "id_estudios_previos" value
 * @method integer             getIdGarantia()          Returns the current record's "id_garantia" value
 * @method decimal             getPorcentaje()          Returns the current record's "porcentaje" value
 * @method string              getValor()               Returns the current record's "valor" value
 * @method CO_ESTUDIOS_PREVIOS getCOESTUDIOSPREVIOS()   Returns the current record's "CO_ESTUDIOS_PREVIOS" value
 * @method CO_GARANTIA         getCOGARANTIA()          Returns the current record's "CO_GARANTIA" value
 * @method Doctrine_Collection getCOAMPAROCONT()        Returns the current record's "CO_AMPARO_CONT" collection
 * @method CO_GARANTIA_EP      setIdGarantiaEp()        Sets the current record's "id_garantia_ep" value
 * @method CO_GARANTIA_EP      setIdEstudiosPrevios()   Sets the current record's "id_estudios_previos" value
 * @method CO_GARANTIA_EP      setIdGarantia()          Sets the current record's "id_garantia" value
 * @method CO_GARANTIA_EP      setPorcentaje()          Sets the current record's "porcentaje" value
 * @method CO_GARANTIA_EP      setValor()               Sets the current record's "valor" value
 * @method CO_GARANTIA_EP      setCOESTUDIOSPREVIOS()   Sets the current record's "CO_ESTUDIOS_PREVIOS" value
 * @method CO_GARANTIA_EP      setCOGARANTIA()          Sets the current record's "CO_GARANTIA" value
 * @method CO_GARANTIA_EP      setCOAMPAROCONT()        Sets the current record's "CO_AMPARO_CONT" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_GARANTIA_EP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_GARANTIA_EP');
        $this->hasColumn('id_garantia_ep', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_estudios_previos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_garantia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasOne('CO_GARANTIA', array(
             'local' => 'id_garantia',
             'foreign' => 'id_garantia'));

        $this->hasMany('CO_AMPARO_CONT', array(
             'local' => 'id_garantia_ep',
             'foreign' => 'id_garantia_ep'));
    }
}