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

/**
 * BaseNO_NOVEDADES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad
 * @property integer $id_tipo_novedad
 * @property string $codigo
 * @property string $descripcion
 * @property integer $id_nat_emp_ini
 * @property integer $id_nat_emp_fin
 * @property integer $afecta_pago
 * @property integer $tiempo_maximo
 * @property NO_TIPO_NOVEDAD $NO_TIPO_NOVEDAD
 * @property Doctrine_Collection $NO_NOVEDAD_PERSONAL
 * 
 * @method integer             getIdNovedad()           Returns the current record's "id_novedad" value
 * @method integer             getIdTipoNovedad()       Returns the current record's "id_tipo_novedad" value
 * @method string              getCodigo()              Returns the current record's "codigo" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getIdNatEmpIni()         Returns the current record's "id_nat_emp_ini" value
 * @method integer             getIdNatEmpFin()         Returns the current record's "id_nat_emp_fin" value
 * @method integer             getAfectaPago()          Returns the current record's "afecta_pago" value
 * @method integer             getTiempoMaximo()        Returns the current record's "tiempo_maximo" value
 * @method NO_TIPO_NOVEDAD     getNOTIPONOVEDAD()       Returns the current record's "NO_TIPO_NOVEDAD" value
 * @method Doctrine_Collection getNONOVEDADPERSONAL()   Returns the current record's "NO_NOVEDAD_PERSONAL" collection
 * @method NO_NOVEDADES        setIdNovedad()           Sets the current record's "id_novedad" value
 * @method NO_NOVEDADES        setIdTipoNovedad()       Sets the current record's "id_tipo_novedad" value
 * @method NO_NOVEDADES        setCodigo()              Sets the current record's "codigo" value
 * @method NO_NOVEDADES        setDescripcion()         Sets the current record's "descripcion" value
 * @method NO_NOVEDADES        setIdNatEmpIni()         Sets the current record's "id_nat_emp_ini" value
 * @method NO_NOVEDADES        setIdNatEmpFin()         Sets the current record's "id_nat_emp_fin" value
 * @method NO_NOVEDADES        setAfectaPago()          Sets the current record's "afecta_pago" value
 * @method NO_NOVEDADES        setTiempoMaximo()        Sets the current record's "tiempo_maximo" value
 * @method NO_NOVEDADES        setNOTIPONOVEDAD()       Sets the current record's "NO_TIPO_NOVEDAD" value
 * @method NO_NOVEDADES        setNONOVEDADPERSONAL()   Sets the current record's "NO_NOVEDAD_PERSONAL" 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_NOVEDADES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_NOVEDADES');
        $this->hasColumn('id_novedad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_novedad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_nat_emp_ini', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nat_emp_fin', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('afecta_pago', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tiempo_maximo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('NO_NOVEDAD_PERSONAL', array(
             'local' => 'id_novedad',
             'foreign' => 'id_novedad'));
    }
}