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

/**
 * BaseCNI_CONEXION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_conexion
 * @property integer $id_cia
 * @property string $host
 * @property string $port
 * @property string $sid
 * @property string $username
 * @property string $password
 * @property CN_CIA $CN_CIA
 * @property Doctrine_Collection $CNI_INTERFAZ
 * @property Doctrine_Collection $CNI_INTERFAZ_3
 * @property Doctrine_Collection $CNI_INTERFAZ_4
 * @property Doctrine_Collection $CNI_INTERFAZ_5
 * 
 * @method integer             getIdConexion()     Returns the current record's "id_conexion" value
 * @method integer             getIdCia()          Returns the current record's "id_cia" value
 * @method string              getHost()           Returns the current record's "host" value
 * @method string              getPort()           Returns the current record's "port" value
 * @method string              getSid()            Returns the current record's "sid" value
 * @method string              getUsername()       Returns the current record's "username" value
 * @method string              getPassword()       Returns the current record's "password" value
 * @method CN_CIA              getCNCIA()          Returns the current record's "CN_CIA" value
 * @method Doctrine_Collection getCNIINTERFAZ()    Returns the current record's "CNI_INTERFAZ" collection
 * @method Doctrine_Collection getCNIINTERFAZ3()   Returns the current record's "CNI_INTERFAZ_3" collection
 * @method Doctrine_Collection getCNIINTERFAZ4()   Returns the current record's "CNI_INTERFAZ_4" collection
 * @method Doctrine_Collection getCNIINTERFAZ5()   Returns the current record's "CNI_INTERFAZ_5" collection
 * @method CNI_CONEXION        setIdConexion()     Sets the current record's "id_conexion" value
 * @method CNI_CONEXION        setIdCia()          Sets the current record's "id_cia" value
 * @method CNI_CONEXION        setHost()           Sets the current record's "host" value
 * @method CNI_CONEXION        setPort()           Sets the current record's "port" value
 * @method CNI_CONEXION        setSid()            Sets the current record's "sid" value
 * @method CNI_CONEXION        setUsername()       Sets the current record's "username" value
 * @method CNI_CONEXION        setPassword()       Sets the current record's "password" value
 * @method CNI_CONEXION        setCNCIA()          Sets the current record's "CN_CIA" value
 * @method CNI_CONEXION        setCNIINTERFAZ()    Sets the current record's "CNI_INTERFAZ" collection
 * @method CNI_CONEXION        setCNIINTERFAZ3()   Sets the current record's "CNI_INTERFAZ_3" collection
 * @method CNI_CONEXION        setCNIINTERFAZ4()   Sets the current record's "CNI_INTERFAZ_4" collection
 * @method CNI_CONEXION        setCNIINTERFAZ5()   Sets the current record's "CNI_INTERFAZ_5" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_CONEXION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_CONEXION');
        $this->hasColumn('id_conexion', '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('host', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('port', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('sid', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('username', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('password', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

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

        $this->hasMany('CNI_INTERFAZ', array(
             'local' => 'id_conexion',
             'foreign' => 'id_cia'));

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

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

        $this->hasMany('CNI_INTERFAZ as CNI_INTERFAZ_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_conexion'));
    }
}