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

/**
 * BaseRMN_MUNICIPIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_municipio
 * @property string $nombre
 * @property string $codigo_dane
 * @property integer $id_departamento
 * @property Doctrine_Collection $RMN_SOLICITUD
 * 
 * @method integer             getIdMunicipio()     Returns the current record's "id_municipio" value
 * @method string              getNombre()          Returns the current record's "nombre" value
 * @method string              getCodigoDane()      Returns the current record's "codigo_dane" value
 * @method integer             getIdDepartamento()  Returns the current record's "id_departamento" value
 * @method Doctrine_Collection getRMNSOLICITUD()    Returns the current record's "RMN_SOLICITUD" collection
 * @method RMN_MUNICIPIO       setIdMunicipio()     Sets the current record's "id_municipio" value
 * @method RMN_MUNICIPIO       setNombre()          Sets the current record's "nombre" value
 * @method RMN_MUNICIPIO       setCodigoDane()      Sets the current record's "codigo_dane" value
 * @method RMN_MUNICIPIO       setIdDepartamento()  Sets the current record's "id_departamento" value
 * @method RMN_MUNICIPIO       setRMNSOLICITUD()    Sets the current record's "RMN_SOLICITUD" 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_MUNICIPIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_MUNICIPIO');
        $this->hasColumn('id_municipio', 'integer', 10, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 10,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('codigo_dane', 'string', 10, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_departamento', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
    }

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