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

/**
 * BaseCA_MODULO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_modulo
 * @property string $descripcion
 * @property string $desc_corta
 * @property string $nombre
 * @property Doctrine_Collection $CA_PERFIL
 * @property Doctrine_Collection $CA_ACCESO
 * 
 * @method integer             getIdModulo()    Returns the current record's "id_modulo" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method string              getDescCorta()   Returns the current record's "desc_corta" value
 * @method string              getNombre()      Returns the current record's "nombre" value
 * @method Doctrine_Collection getCAPERFIL()    Returns the current record's "CA_PERFIL" collection
 * @method Doctrine_Collection getCAACCESO()    Returns the current record's "CA_ACCESO" collection
 * @method CA_MODULO           setIdModulo()    Sets the current record's "id_modulo" value
 * @method CA_MODULO           setDescripcion() Sets the current record's "descripcion" value
 * @method CA_MODULO           setDescCorta()   Sets the current record's "desc_corta" value
 * @method CA_MODULO           setNombre()      Sets the current record's "nombre" value
 * @method CA_MODULO           setCAPERFIL()    Sets the current record's "CA_PERFIL" collection
 * @method CA_MODULO           setCAACCESO()    Sets the current record's "CA_ACCESO" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_MODULO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_MODULO');
        $this->hasColumn('id_modulo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('desc_corta', 'string', 64, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $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('CA_PERFIL', array(
             'local' => 'id_modulo',
             'foreign' => 'id_modulo'));

        $this->hasMany('CA_ACCESO', array(
             'local' => 'id_modulo',
             'foreign' => 'id_modulo'));
    }
}