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

/**
 * BaseCNI_PARAM_INTERFAZ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_param
 * @property integer $id_cia
 * @property integer $id_interfaz
 * @property string $nombre
 * @property integer $obligatorio
 * @property integer $es_sql
 * @property string $sql
 * @property string $depende
 * @property CNI_INTERFAZ $CNI_INTERFAZ
 * @property CNI_INTERFAZ $CNI_INTERFAZ_2
 * @property CNI_INTERFAZ $CNI_INTERFAZ_3
 * @property CNI_INTERFAZ $CNI_INTERFAZ_4
 * 
 * @method integer            getIdParam()        Returns the current record's "id_param" value
 * @method integer            getIdCia()          Returns the current record's "id_cia" value
 * @method integer            getIdInterfaz()     Returns the current record's "id_interfaz" value
 * @method string             getNombre()         Returns the current record's "nombre" value
 * @method integer            getObligatorio()    Returns the current record's "obligatorio" value
 * @method integer            getEsSql()          Returns the current record's "es_sql" value
 * @method string             getSql()            Returns the current record's "sql" value
 * @method string             getDepende()        Returns the current record's "depende" value
 * @method CNI_INTERFAZ       getCNIINTERFAZ()    Returns the current record's "CNI_INTERFAZ" value
 * @method CNI_INTERFAZ       getCNIINTERFAZ2()   Returns the current record's "CNI_INTERFAZ_2" value
 * @method CNI_INTERFAZ       getCNIINTERFAZ3()   Returns the current record's "CNI_INTERFAZ_3" value
 * @method CNI_INTERFAZ       getCNIINTERFAZ4()   Returns the current record's "CNI_INTERFAZ_4" value
 * @method CNI_PARAM_INTERFAZ setIdParam()        Sets the current record's "id_param" value
 * @method CNI_PARAM_INTERFAZ setIdCia()          Sets the current record's "id_cia" value
 * @method CNI_PARAM_INTERFAZ setIdInterfaz()     Sets the current record's "id_interfaz" value
 * @method CNI_PARAM_INTERFAZ setNombre()         Sets the current record's "nombre" value
 * @method CNI_PARAM_INTERFAZ setObligatorio()    Sets the current record's "obligatorio" value
 * @method CNI_PARAM_INTERFAZ setEsSql()          Sets the current record's "es_sql" value
 * @method CNI_PARAM_INTERFAZ setSql()            Sets the current record's "sql" value
 * @method CNI_PARAM_INTERFAZ setDepende()        Sets the current record's "depende" value
 * @method CNI_PARAM_INTERFAZ setCNIINTERFAZ()    Sets the current record's "CNI_INTERFAZ" value
 * @method CNI_PARAM_INTERFAZ setCNIINTERFAZ2()   Sets the current record's "CNI_INTERFAZ_2" value
 * @method CNI_PARAM_INTERFAZ setCNIINTERFAZ3()   Sets the current record's "CNI_INTERFAZ_3" value
 * @method CNI_PARAM_INTERFAZ setCNIINTERFAZ4()   Sets the current record's "CNI_INTERFAZ_4" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_PARAM_INTERFAZ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_PARAM_INTERFAZ');
        $this->hasColumn('id_param', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_interfaz', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('obligatorio', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('es_sql', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('sql', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('depende', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_list_serv', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_2', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_interfaz'));

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_3', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasOne('CNI_INTERFAZ as CNI_INTERFAZ_4', array(
             'local' => 'id_interfaz',
             'foreign' => 'id_cia'));
    }
}