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

/**
 * BaseCA_PREG_SEGURIDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_preg_seguridad
 * @property integer $id_usuario
 * @property string $texto_preg
 * @property string $resp_preg
 * @property CA_USUARIO $CA_USUARIO
 * 
 * @method integer           getIdPregSeguridad()   Returns the current record's "id_preg_seguridad" value
 * @method integer           getIdUsuario()         Returns the current record's "id_usuario" value
 * @method string            getTextoPreg()         Returns the current record's "texto_preg" value
 * @method string            getRespPreg()          Returns the current record's "resp_preg" value
 * @method CA_USUARIO        getCAUSUARIO()         Returns the current record's "CA_USUARIO" value
 * @method CA_PREG_SEGURIDAD setIdPregSeguridad()   Sets the current record's "id_preg_seguridad" value
 * @method CA_PREG_SEGURIDAD setIdUsuario()         Sets the current record's "id_usuario" value
 * @method CA_PREG_SEGURIDAD setTextoPreg()         Sets the current record's "texto_preg" value
 * @method CA_PREG_SEGURIDAD setRespPreg()          Sets the current record's "resp_preg" value
 * @method CA_PREG_SEGURIDAD setCAUSUARIO()         Sets the current record's "CA_USUARIO" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_PREG_SEGURIDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_PREG_SEGURIDAD');
        $this->hasColumn('id_preg_seguridad', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_usuario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('texto_preg', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('resp_preg', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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