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

/**
 * BaseEDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_edad
 * @property string $edad
 * @property Doctrine_Collection $RH_EN_REGISTRO_ENCUESTA
 * 
 * @method integer             getIdEdad()                  Returns the current record's "id_edad" value
 * @method string              getEdad()                    Returns the current record's "edad" value
 * @method Doctrine_Collection getRHENREGISTROENCUESTA()    Returns the current record's "RH_EN_REGISTRO_ENCUESTA" collection
 * @method EDAD                setIdEdad()                  Sets the current record's "id_edad" value
 * @method EDAD                setEdad()                    Sets the current record's "edad" value
 * @method EDAD                setRHENREGISTROENCUESTA()    Sets the current record's "RH_EN_REGISTRO_ENCUESTA" 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 BaseEDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('EDAD');
        $this->hasColumn('id_edad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('edad', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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