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

/**
 * BaseRMN_DEPARTAMENTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_departamento
 * @property string $nombre
 * @property Doctrine_Collection $RMN_COMPETENCIA
 * 
 * @method integer             getIdDepartamento()  Returns the current record's "id_departamento" value
 * @method string              getNombre()          Returns the current record's "nombre" value
 * @method Doctrine_Collection getRMNCOMPETENCIA()  Returns the current record's "RMN_COMPETENCIA" collection
 * @method RMN_DEPARTAMENTO    setIdDepartamento()  Sets the current record's "id_departamento" value
 * @method RMN_DEPARTAMENTO    setNombre()          Sets the current record's "nombre" value
 * @method RMN_DEPARTAMENTO    setRMNCOMPETENCIA()  Sets the current record's "RMN_COMPETENCIA" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRMN_DEPARTAMENTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_DEPARTAMENTO');
        $this->hasColumn('id_departamento', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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