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

/**
 * BaseANHOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anhos
 * @property Doctrine_Collection $RE_SALDO
 * @property Doctrine_Collection $CA_FACTURA_POS
 * @property Doctrine_Collection $RE_DISTRIBUCION
 * @property Doctrine_Collection $CA_DEBITO
 * @property Doctrine_Collection $CA_CONSECUTIVO_CRE
 * @property Doctrine_Collection $CA_CONSECUTIVO_DEB
 * @property Doctrine_Collection $CA_CREDITO
 * @property Doctrine_Collection $CA_SALDOS
 * @property Doctrine_Collection $CA_FACTURA_POS_TEMP
 * 
 * @method integer             getIdAnhos()             Returns the current record's "id_anhos" value
 * @method Doctrine_Collection getRESALDO()             Returns the current record's "RE_SALDO" collection
 * @method Doctrine_Collection getCAFACTURAPOS()        Returns the current record's "CA_FACTURA_POS" collection
 * @method Doctrine_Collection getREDISTRIBUCION()      Returns the current record's "RE_DISTRIBUCION" collection
 * @method Doctrine_Collection getCADEBITO()            Returns the current record's "CA_DEBITO" collection
 * @method Doctrine_Collection getCACONSECUTIVOCRE()    Returns the current record's "CA_CONSECUTIVO_CRE" collection
 * @method Doctrine_Collection getCACONSECUTIVODEB()    Returns the current record's "CA_CONSECUTIVO_DEB" collection
 * @method Doctrine_Collection getCACREDITO()           Returns the current record's "CA_CREDITO" collection
 * @method Doctrine_Collection getCASALDOS()            Returns the current record's "CA_SALDOS" collection
 * @method Doctrine_Collection getCAFACTURAPOSTEMP()    Returns the current record's "CA_FACTURA_POS_TEMP" collection
 * @method ANHOS               setIdAnhos()             Sets the current record's "id_anhos" value
 * @method ANHOS               setRESALDO()             Sets the current record's "RE_SALDO" collection
 * @method ANHOS               setCAFACTURAPOS()        Sets the current record's "CA_FACTURA_POS" collection
 * @method ANHOS               setREDISTRIBUCION()      Sets the current record's "RE_DISTRIBUCION" collection
 * @method ANHOS               setCADEBITO()            Sets the current record's "CA_DEBITO" collection
 * @method ANHOS               setCACONSECUTIVOCRE()    Sets the current record's "CA_CONSECUTIVO_CRE" collection
 * @method ANHOS               setCACONSECUTIVODEB()    Sets the current record's "CA_CONSECUTIVO_DEB" collection
 * @method ANHOS               setCACREDITO()           Sets the current record's "CA_CREDITO" collection
 * @method ANHOS               setCASALDOS()            Sets the current record's "CA_SALDOS" collection
 * @method ANHOS               setCAFACTURAPOSTEMP()    Sets the current record's "CA_FACTURA_POS_TEMP" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseANHOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ANHOS');
        $this->hasColumn('id_anhos', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 4,
             ));
    }

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

        $this->hasMany('CA_FACTURA_POS', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('RE_DISTRIBUCION', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_DEBITO', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_CONSECUTIVO_CRE', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_CONSECUTIVO_DEB', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_CREDITO', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_SALDOS', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));

        $this->hasMany('CA_FACTURA_POS_TEMP', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos'));
    }
}