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

/**
 * BaseMESES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_meses
 * @property string $descripcion
 * @property Doctrine_Collection $RE_SALDO
 * @property Doctrine_Collection $IN_DEPRECIACION
 * 
 * @method integer             getIdMeses()         Returns the current record's "id_meses" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method Doctrine_Collection getRESALDO()         Returns the current record's "RE_SALDO" collection
 * @method Doctrine_Collection getINDEPRECIACION()  Returns the current record's "IN_DEPRECIACION" collection
 * @method MESES               setIdMeses()         Sets the current record's "id_meses" value
 * @method MESES               setDescripcion()     Sets the current record's "descripcion" value
 * @method MESES               setRESALDO()         Sets the current record's "RE_SALDO" collection
 * @method MESES               setINDEPRECIACION()  Sets the current record's "IN_DEPRECIACION" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMESES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MESES');
        $this->hasColumn('id_meses', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('IN_DEPRECIACION', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));
    }
}