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

/**
 * BaseCNI_REL_INTERFAZ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_interfaz_padre
 * @property integer $id_interfaz_hijo
 * @property integer $id_cia
 * @property string $condicion
 * @property integer $estado
 * @property CNI_INTERFAZ $CNI_INTERFAZ
 * @property CNI_INTERFAZ $CNI_INTERFAZ_2
 * @property CNI_INTERFAZ $CNI_INTERFAZ_3
 * @property CNI_INTERFAZ $CNI_INTERFAZ_4
 * @property CNI_INTERFAZ $CNI_INTERFAZ_5
 * @property CNI_INTERFAZ $CNI_INTERFAZ_6
 * @property CNI_INTERFAZ $CNI_INTERFAZ_7
 * @property CNI_INTERFAZ $CNI_INTERFAZ_8
 * 
 * @method integer          getIdInterfazPadre()   Returns the current record's "id_interfaz_padre" value
 * @method integer          getIdInterfazHijo()    Returns the current record's "id_interfaz_hijo" value
 * @method integer          getIdCia()             Returns the current record's "id_cia" value
 * @method string           getCondicion()         Returns the current record's "condicion" value
 * @method integer          getEstado()            Returns the current record's "estado" 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_INTERFAZ     getCNIINTERFAZ5()      Returns the current record's "CNI_INTERFAZ_5" value
 * @method CNI_INTERFAZ     getCNIINTERFAZ6()      Returns the current record's "CNI_INTERFAZ_6" value
 * @method CNI_INTERFAZ     getCNIINTERFAZ7()      Returns the current record's "CNI_INTERFAZ_7" value
 * @method CNI_INTERFAZ     getCNIINTERFAZ8()      Returns the current record's "CNI_INTERFAZ_8" value
 * @method CNI_REL_INTERFAZ setIdInterfazPadre()   Sets the current record's "id_interfaz_padre" value
 * @method CNI_REL_INTERFAZ setIdInterfazHijo()    Sets the current record's "id_interfaz_hijo" value
 * @method CNI_REL_INTERFAZ setIdCia()             Sets the current record's "id_cia" value
 * @method CNI_REL_INTERFAZ setCondicion()         Sets the current record's "condicion" value
 * @method CNI_REL_INTERFAZ setEstado()            Sets the current record's "estado" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ()       Sets the current record's "CNI_INTERFAZ" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ2()      Sets the current record's "CNI_INTERFAZ_2" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ3()      Sets the current record's "CNI_INTERFAZ_3" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ4()      Sets the current record's "CNI_INTERFAZ_4" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ5()      Sets the current record's "CNI_INTERFAZ_5" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ6()      Sets the current record's "CNI_INTERFAZ_6" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ7()      Sets the current record's "CNI_INTERFAZ_7" value
 * @method CNI_REL_INTERFAZ setCNIINTERFAZ8()      Sets the current record's "CNI_INTERFAZ_8" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_REL_INTERFAZ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_REL_INTERFAZ');
        $this->hasColumn('id_interfaz_padre', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_interfaz_hijo', '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('condicion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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

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

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

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

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

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

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