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

/**
 * BaseMODULOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mod
 * @property string $nombre
 * @property string $direccion
 * @property integer $orden
 * @property Doctrine_Collection $CREDENCIAL
 * 
 * @method integer             getIdMod()      Returns the current record's "id_mod" value
 * @method string              getNombre()     Returns the current record's "nombre" value
 * @method string              getDireccion()  Returns the current record's "direccion" value
 * @method integer             getOrden()      Returns the current record's "orden" value
 * @method Doctrine_Collection getCREDENCIAL() Returns the current record's "CREDENCIAL" collection
 * @method MODULOS             setIdMod()      Sets the current record's "id_mod" value
 * @method MODULOS             setNombre()     Sets the current record's "nombre" value
 * @method MODULOS             setDireccion()  Sets the current record's "direccion" value
 * @method MODULOS             setOrden()      Sets the current record's "orden" value
 * @method MODULOS             setCREDENCIAL() Sets the current record's "CREDENCIAL" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMODULOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MODULOS');
        $this->hasColumn('id_mod', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('direccion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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