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

/**
 * BaseCNI_TRANSA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_transa
 * @property integer $id_cia
 * @property string $descr_transa
 * @property integer $id_tipo_comprobante
 * @property integer $id_td
 * @property CN_TD $CN_TD
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_3
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_4
 * @property CN_TIPO_COMPROBANTE $CN_TIPO_COMPROBANTE_5
 * 
 * @method integer             getIdTransa()              Returns the current record's "id_transa" value
 * @method integer             getIdCia()                 Returns the current record's "id_cia" value
 * @method string              getDescrTransa()           Returns the current record's "descr_transa" value
 * @method integer             getIdTipoComprobante()     Returns the current record's "id_tipo_comprobante" value
 * @method integer             getIdTd()                  Returns the current record's "id_td" value
 * @method CN_TD               getCNTD()                  Returns the current record's "CN_TD" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE()     Returns the current record's "CN_TIPO_COMPROBANTE" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE3()    Returns the current record's "CN_TIPO_COMPROBANTE_3" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE4()    Returns the current record's "CN_TIPO_COMPROBANTE_4" value
 * @method CN_TIPO_COMPROBANTE getCNTIPOCOMPROBANTE5()    Returns the current record's "CN_TIPO_COMPROBANTE_5" value
 * @method CNI_TRANSA          setIdTransa()              Sets the current record's "id_transa" value
 * @method CNI_TRANSA          setIdCia()                 Sets the current record's "id_cia" value
 * @method CNI_TRANSA          setDescrTransa()           Sets the current record's "descr_transa" value
 * @method CNI_TRANSA          setIdTipoComprobante()     Sets the current record's "id_tipo_comprobante" value
 * @method CNI_TRANSA          setIdTd()                  Sets the current record's "id_td" value
 * @method CNI_TRANSA          setCNTD()                  Sets the current record's "CN_TD" value
 * @method CNI_TRANSA          setCNTIPOCOMPROBANTE()     Sets the current record's "CN_TIPO_COMPROBANTE" value
 * @method CNI_TRANSA          setCNTIPOCOMPROBANTE3()    Sets the current record's "CN_TIPO_COMPROBANTE_3" value
 * @method CNI_TRANSA          setCNTIPOCOMPROBANTE4()    Sets the current record's "CN_TIPO_COMPROBANTE_4" value
 * @method CNI_TRANSA          setCNTIPOCOMPROBANTE5()    Sets the current record's "CN_TIPO_COMPROBANTE_5" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCNI_TRANSA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CNI_TRANSA');
        $this->hasColumn('id_transa', '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('descr_transa', 'string', 256, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('id_tipo_comprobante', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_td', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CN_TIPO_COMPROBANTE', array(
             'local' => 'id_cia',
             'foreign' => 'id_tipo_comprobante'));

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_3', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_tipo_comprobante'));

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

        $this->hasOne('CN_TIPO_COMPROBANTE as CN_TIPO_COMPROBANTE_5', array(
             'local' => 'id_tipo_comprobante',
             'foreign' => 'id_cia'));
    }
}