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

/**
 * BaseCNI_LOG_INTERFAZ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_log
 * @property integer $id_cia
 * @property integer $id_interfaz
 * @property timestamp $fecha_ejecucion
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_cad
 * @property integer $id_documento
 * @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          getIdLog()           Returns the current record's "id_log" value
 * @method integer          getIdCia()           Returns the current record's "id_cia" value
 * @method integer          getIdInterfaz()      Returns the current record's "id_interfaz" value
 * @method timestamp        getFechaEjecucion()  Returns the current record's "fecha_ejecucion" value
 * @method integer          getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method integer          getIdCenOp()         Returns the current record's "id_cen_op" value
 * @method integer          getIdCad()           Returns the current record's "id_cad" value
 * @method integer          getIdDocumento()     Returns the current record's "id_documento" 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_LOG_INTERFAZ setIdLog()           Sets the current record's "id_log" value
 * @method CNI_LOG_INTERFAZ setIdCia()           Sets the current record's "id_cia" value
 * @method CNI_LOG_INTERFAZ setIdInterfaz()      Sets the current record's "id_interfaz" value
 * @method CNI_LOG_INTERFAZ setFechaEjecucion()  Sets the current record's "fecha_ejecucion" value
 * @method CNI_LOG_INTERFAZ setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method CNI_LOG_INTERFAZ setIdCenOp()         Sets the current record's "id_cen_op" value
 * @method CNI_LOG_INTERFAZ setIdCad()           Sets the current record's "id_cad" value
 * @method CNI_LOG_INTERFAZ setIdDocumento()     Sets the current record's "id_documento" value
 * @method CNI_LOG_INTERFAZ setCNIINTERFAZ()     Sets the current record's "CNI_INTERFAZ" value
 * @method CNI_LOG_INTERFAZ setCNIINTERFAZ2()    Sets the current record's "CNI_INTERFAZ_2" value
 * @method CNI_LOG_INTERFAZ setCNIINTERFAZ3()    Sets the current record's "CNI_INTERFAZ_3" value
 * @method CNI_LOG_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_LOG_INTERFAZ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_LOG_INTERFAZ');
        $this->hasColumn('id_log', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_interfaz', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_ejecucion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_documento', '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'));
    }
}