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

/**
 * BaseCA_ADMINISTRA_ALARMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_administra_alarma
 * @property integer $id_alarma
 * @property integer $id_perfil
 * @property string $correo_electronico
 * @property string $dias_ejecutar
 * @property CA_ALARMA $CA_ALARMA
 * @property CA_PERFIL $CA_PERFIL
 * 
 * @method integer              getIdAdministraAlarma()   Returns the current record's "id_administra_alarma" value
 * @method integer              getIdAlarma()             Returns the current record's "id_alarma" value
 * @method integer              getIdPerfil()             Returns the current record's "id_perfil" value
 * @method string               getCorreoElectronico()    Returns the current record's "correo_electronico" value
 * @method string               getDiasEjecutar()         Returns the current record's "dias_ejecutar" value
 * @method CA_ALARMA            getCAALARMA()             Returns the current record's "CA_ALARMA" value
 * @method CA_PERFIL            getCAPERFIL()             Returns the current record's "CA_PERFIL" value
 * @method CA_ADMINISTRA_ALARMA setIdAdministraAlarma()   Sets the current record's "id_administra_alarma" value
 * @method CA_ADMINISTRA_ALARMA setIdAlarma()             Sets the current record's "id_alarma" value
 * @method CA_ADMINISTRA_ALARMA setIdPerfil()             Sets the current record's "id_perfil" value
 * @method CA_ADMINISTRA_ALARMA setCorreoElectronico()    Sets the current record's "correo_electronico" value
 * @method CA_ADMINISTRA_ALARMA setDiasEjecutar()         Sets the current record's "dias_ejecutar" value
 * @method CA_ADMINISTRA_ALARMA setCAALARMA()             Sets the current record's "CA_ALARMA" value
 * @method CA_ADMINISTRA_ALARMA setCAPERFIL()             Sets the current record's "CA_PERFIL" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCA_ADMINISTRA_ALARMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ADMINISTRA_ALARMA');
        $this->hasColumn('id_administra_alarma', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_alarma', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_perfil', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('correo_electronico', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('dias_ejecutar', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 150,
             ));
    }

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

        $this->hasOne('CA_PERFIL', array(
             'local' => 'id_perfil',
             'foreign' => 'id_perfil'));
    }
}