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

/**
 * BaseCA_TIPO_ALARMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_alarma
 * @property string $descripcion
 * @property integer $estado
 * @property Doctrine_Collection $CA_ALARMA
 * 
 * @method integer             getIdTipoAlarma()   Returns the current record's "id_tipo_alarma" value
 * @method string              getDescripcion()    Returns the current record's "descripcion" value
 * @method integer             getEstado()         Returns the current record's "estado" value
 * @method Doctrine_Collection getCAALARMA()       Returns the current record's "CA_ALARMA" collection
 * @method CA_TIPO_ALARMA      setIdTipoAlarma()   Sets the current record's "id_tipo_alarma" value
 * @method CA_TIPO_ALARMA      setDescripcion()    Sets the current record's "descripcion" value
 * @method CA_TIPO_ALARMA      setEstado()         Sets the current record's "estado" value
 * @method CA_TIPO_ALARMA      setCAALARMA()       Sets the current record's "CA_ALARMA" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCA_TIPO_ALARMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TIPO_ALARMA');
        $this->hasColumn('id_tipo_alarma', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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