<?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 $NO_PROMEDIO_PERIODO
 * @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 getNOPROMEDIOPERIODO()   Returns the current record's "NO_PROMEDIO_PERIODO" 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               setNOPROMEDIOPERIODO()   Sets the current record's "NO_PROMEDIO_PERIODO" collection
 * @method MESES               setINDEPRECIACION()      Sets the current record's "IN_DEPRECIACION" collection
 * 
 * @package    contratacion
 * @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(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => false,
             '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('NO_PROMEDIO_PERIODO', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));

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