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

/**
 * BaseCO_GARANTIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_garantia
 * @property string $modalidad
 * @property string $vigencia_amparo
 * @property string $unidad_medida
 * @property integer $estado
 * @property Doctrine_Collection $CO_GARANTIA_EP
 * 
 * @method integer             getIdGarantia()      Returns the current record's "id_garantia" value
 * @method string              getModalidad()       Returns the current record's "modalidad" value
 * @method string              getVigenciaAmparo()  Returns the current record's "vigencia_amparo" value
 * @method string              getUnidadMedida()    Returns the current record's "unidad_medida" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method Doctrine_Collection getCOGARANTIAEP()    Returns the current record's "CO_GARANTIA_EP" collection
 * @method CO_GARANTIA         setIdGarantia()      Sets the current record's "id_garantia" value
 * @method CO_GARANTIA         setModalidad()       Sets the current record's "modalidad" value
 * @method CO_GARANTIA         setVigenciaAmparo()  Sets the current record's "vigencia_amparo" value
 * @method CO_GARANTIA         setUnidadMedida()    Sets the current record's "unidad_medida" value
 * @method CO_GARANTIA         setEstado()          Sets the current record's "estado" value
 * @method CO_GARANTIA         setCOGARANTIAEP()    Sets the current record's "CO_GARANTIA_EP" collection
 * 
 * @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_GARANTIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_GARANTIA');
        $this->hasColumn('id_garantia', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('modalidad', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('vigencia_amparo', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('unidad_medida', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CO_GARANTIA_EP', array(
             'local' => 'id_garantia',
             'foreign' => 'id_garantia'));
    }
}