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

/**
 * BaseNO_TIPO_COBERTURA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_cobertura
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $NO_MAE_FONDOS
 * 
 * @method integer             getIdTipoCobertura()   Returns the current record's "id_tipo_cobertura" value
 * @method string              getCodigo()            Returns the current record's "codigo" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method Doctrine_Collection getNOMAEFONDOS()       Returns the current record's "NO_MAE_FONDOS" collection
 * @method NO_TIPO_COBERTURA   setIdTipoCobertura()   Sets the current record's "id_tipo_cobertura" value
 * @method NO_TIPO_COBERTURA   setCodigo()            Sets the current record's "codigo" value
 * @method NO_TIPO_COBERTURA   setDescripcion()       Sets the current record's "descripcion" value
 * @method NO_TIPO_COBERTURA   setNOMAEFONDOS()       Sets the current record's "NO_MAE_FONDOS" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIPO_COBERTURA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_COBERTURA');
        $this->hasColumn('id_tipo_cobertura', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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