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

/**
 * BaseNO_DESCUENTO_SS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_descuento_ss
 * @property integer $id_clase_fondo
 * @property string $codigo
 * @property string $descripcion
 * @property integer $id_concep_nomina
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_CLASE_FONDO $NO_CLASE_FONDO
 * @property Doctrine_Collection $NO_FONDO_CONCEPTO
 * @property Doctrine_Collection $NO_DESCTO_DETALLE
 * 
 * @method integer             getIdDescuentoSs()     Returns the current record's "id_descuento_ss" value
 * @method integer             getIdClaseFondo()      Returns the current record's "id_clase_fondo" value
 * @method string              getCodigo()            Returns the current record's "codigo" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method integer             getIdConcepNomina()    Returns the current record's "id_concep_nomina" value
 * @method NO_CONCEP_NOMINA    getNOCONCEPNOMINA()    Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_CLASE_FONDO      getNOCLASEFONDO()      Returns the current record's "NO_CLASE_FONDO" value
 * @method Doctrine_Collection getNOFONDOCONCEPTO()   Returns the current record's "NO_FONDO_CONCEPTO" collection
 * @method Doctrine_Collection getNODESCTODETALLE()   Returns the current record's "NO_DESCTO_DETALLE" collection
 * @method NO_DESCUENTO_SS     setIdDescuentoSs()     Sets the current record's "id_descuento_ss" value
 * @method NO_DESCUENTO_SS     setIdClaseFondo()      Sets the current record's "id_clase_fondo" value
 * @method NO_DESCUENTO_SS     setCodigo()            Sets the current record's "codigo" value
 * @method NO_DESCUENTO_SS     setDescripcion()       Sets the current record's "descripcion" value
 * @method NO_DESCUENTO_SS     setIdConcepNomina()    Sets the current record's "id_concep_nomina" value
 * @method NO_DESCUENTO_SS     setNOCONCEPNOMINA()    Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_DESCUENTO_SS     setNOCLASEFONDO()      Sets the current record's "NO_CLASE_FONDO" value
 * @method NO_DESCUENTO_SS     setNOFONDOCONCEPTO()   Sets the current record's "NO_FONDO_CONCEPTO" collection
 * @method NO_DESCUENTO_SS     setNODESCTODETALLE()   Sets the current record's "NO_DESCTO_DETALLE" 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_DESCUENTO_SS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_DESCUENTO_SS');
        $this->hasColumn('id_descuento_ss', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_clase_fondo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('NO_CLASE_FONDO', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasMany('NO_FONDO_CONCEPTO', array(
             'local' => 'id_descuento_ss',
             'foreign' => 'id_descuento_ss'));

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