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

/**
 * BaseNIVEL_ORGANIZACIONAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_niv_org
 * @property string $descripcion
 * @property Doctrine_Collection $AREA
 * 
 * @method integer              getIdNivOrg()    Returns the current record's "id_niv_org" value
 * @method string               getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection  getAREA()        Returns the current record's "AREA" collection
 * @method NIVEL_ORGANIZACIONAL setIdNivOrg()    Sets the current record's "id_niv_org" value
 * @method NIVEL_ORGANIZACIONAL setDescripcion() Sets the current record's "descripcion" value
 * @method NIVEL_ORGANIZACIONAL setAREA()        Sets the current record's "AREA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNIVEL_ORGANIZACIONAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NIVEL_ORGANIZACIONAL');
        $this->hasColumn('id_niv_org', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $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('AREA', array(
             'local' => 'id_niv_org',
             'foreign' => 'id_nivel'));
    }
}