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

/**
 * BaseMENUS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property timestamp $update_at
 * @property integer $orden
 * @property Doctrine_Collection $CREDENCIALES
 * 
 * @method integer             getId()           Returns the current record's "id" value
 * @method string              getDescripcion()  Returns the current record's "descripcion" value
 * @method timestamp           getUpdateAt()     Returns the current record's "update_at" value
 * @method integer             getOrden()        Returns the current record's "orden" value
 * @method Doctrine_Collection getCREDENCIALES() Returns the current record's "CREDENCIALES" collection
 * @method MENUS               setId()           Sets the current record's "id" value
 * @method MENUS               setDescripcion()  Sets the current record's "descripcion" value
 * @method MENUS               setUpdateAt()     Sets the current record's "update_at" value
 * @method MENUS               setOrden()        Sets the current record's "orden" value
 * @method MENUS               setCREDENCIALES() Sets the current record's "CREDENCIALES" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMENUS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MENUS');
        $this->hasColumn('id', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 30, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('update_at', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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('CREDENCIALES', array(
             'local' => 'id',
             'foreign' => 'id_menu'));
    }
}