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

/**
 * BaseCNI_RES_INTERFAZ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_res
 * @property integer $id_cia
 * @property integer $id_interfaz
 * @property string $nombre
 * @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          getIdRes()          Returns the current record's "id_res" 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 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_RES_INTERFAZ setIdRes()          Sets the current record's "id_res" value
 * @method CNI_RES_INTERFAZ setIdCia()          Sets the current record's "id_cia" value
 * @method CNI_RES_INTERFAZ setIdInterfaz()     Sets the current record's "id_interfaz" value
 * @method CNI_RES_INTERFAZ setNombre()         Sets the current record's "nombre" value
 * @method CNI_RES_INTERFAZ setCNIINTERFAZ()    Sets the current record's "CNI_INTERFAZ" value
 * @method CNI_RES_INTERFAZ setCNIINTERFAZ2()   Sets the current record's "CNI_INTERFAZ_2" value
 * @method CNI_RES_INTERFAZ setCNIINTERFAZ3()   Sets the current record's "CNI_INTERFAZ_3" value
 * @method CNI_RES_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_RES_INTERFAZ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_RES_INTERFAZ');
        $this->hasColumn('id_res', '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('num_tipo_variable', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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'));
    }
}