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

/**
 * BaseNO_TIPO_APORTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_aporte
 * @property string $codigo
 * @property string $descripcion
 * @property integer $afecta_riesgo
 * @property Doctrine_Collection $NO_LIQUIDA_APORTE
 * @property Doctrine_Collection $NO_DESCTO_DETALLE
 * @property Doctrine_Collection $NO_AFILIA_FONDO
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE
 * @property Doctrine_Collection $CONT_AFILIA_FONDO
 * 
 * @method integer             getIdTipoAporte()        Returns the current record's "id_tipo_aporte" value
 * @method string              getCodigo()              Returns the current record's "codigo" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getAfectaRiesgo()        Returns the current record's "afecta_riesgo" value
 * @method Doctrine_Collection getNOLIQUIDAAPORTE()     Returns the current record's "NO_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getNODESCTODETALLE()     Returns the current record's "NO_DESCTO_DETALLE" collection
 * @method Doctrine_Collection getNOAFILIAFONDO()       Returns the current record's "NO_AFILIA_FONDO" collection
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE()   Returns the current record's "CONT_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO()     Returns the current record's "CONT_AFILIA_FONDO" collection
 * @method NO_TIPO_APORTE      setIdTipoAporte()        Sets the current record's "id_tipo_aporte" value
 * @method NO_TIPO_APORTE      setCodigo()              Sets the current record's "codigo" value
 * @method NO_TIPO_APORTE      setDescripcion()         Sets the current record's "descripcion" value
 * @method NO_TIPO_APORTE      setAfectaRiesgo()        Sets the current record's "afecta_riesgo" value
 * @method NO_TIPO_APORTE      setNOLIQUIDAAPORTE()     Sets the current record's "NO_LIQUIDA_APORTE" collection
 * @method NO_TIPO_APORTE      setNODESCTODETALLE()     Sets the current record's "NO_DESCTO_DETALLE" collection
 * @method NO_TIPO_APORTE      setNOAFILIAFONDO()       Sets the current record's "NO_AFILIA_FONDO" collection
 * @method NO_TIPO_APORTE      setCONTLIQUIDAAPORTE()   Sets the current record's "CONT_LIQUIDA_APORTE" collection
 * @method NO_TIPO_APORTE      setCONTAFILIAFONDO()     Sets the current record's "CONT_AFILIA_FONDO" 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 BaseNO_TIPO_APORTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIPO_APORTE');
        $this->hasColumn('id_tipo_aporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('afecta_riesgo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('NO_DESCTO_DETALLE', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));

        $this->hasMany('NO_AFILIA_FONDO', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));

        $this->hasMany('CONT_LIQUIDA_APORTE', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));

        $this->hasMany('CONT_AFILIA_FONDO', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));
    }
}