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

/**
 * BaseCN_INFORME_FIRMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_informe_firma
 * @property integer $id_cia
 * @property string $comando_informe
 * @property integer $id_firma
 * @property CN_CIA $CN_CIA
 * @property CN_FIRMA $CN_FIRMA
 * @property CN_FIRMA $CN_FIRMA_3
 * @property CN_FIRMA $CN_FIRMA_4
 * @property CN_FIRMA $CN_FIRMA_5
 * 
 * @method integer          getIdInformeFirma()   Returns the current record's "id_informe_firma" value
 * @method integer          getIdCia()            Returns the current record's "id_cia" value
 * @method string           getComandoInforme()   Returns the current record's "comando_informe" value
 * @method integer          getIdFirma()          Returns the current record's "id_firma" value
 * @method CN_CIA           getCNCIA()            Returns the current record's "CN_CIA" value
 * @method CN_FIRMA         getCNFIRMA()          Returns the current record's "CN_FIRMA" value
 * @method CN_FIRMA         getCNFIRMA3()         Returns the current record's "CN_FIRMA_3" value
 * @method CN_FIRMA         getCNFIRMA4()         Returns the current record's "CN_FIRMA_4" value
 * @method CN_FIRMA         getCNFIRMA5()         Returns the current record's "CN_FIRMA_5" value
 * @method CN_INFORME_FIRMA setIdInformeFirma()   Sets the current record's "id_informe_firma" value
 * @method CN_INFORME_FIRMA setIdCia()            Sets the current record's "id_cia" value
 * @method CN_INFORME_FIRMA setComandoInforme()   Sets the current record's "comando_informe" value
 * @method CN_INFORME_FIRMA setIdFirma()          Sets the current record's "id_firma" value
 * @method CN_INFORME_FIRMA setCNCIA()            Sets the current record's "CN_CIA" value
 * @method CN_INFORME_FIRMA setCNFIRMA()          Sets the current record's "CN_FIRMA" value
 * @method CN_INFORME_FIRMA setCNFIRMA3()         Sets the current record's "CN_FIRMA_3" value
 * @method CN_INFORME_FIRMA setCNFIRMA4()         Sets the current record's "CN_FIRMA_4" value
 * @method CN_INFORME_FIRMA setCNFIRMA5()         Sets the current record's "CN_FIRMA_5" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_INFORME_FIRMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_INFORME_FIRMA');
        $this->hasColumn('id_informe_firma', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('comando_informe', 'string', 128, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 128,
             ));
        $this->hasColumn('id_firma', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
    }

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

        $this->hasOne('CN_FIRMA', array(
             'local' => 'id_cia',
             'foreign' => 'id_firma'));

        $this->hasOne('CN_FIRMA as CN_FIRMA_3', array(
             'local' => 'id_firma',
             'foreign' => 'id_firma'));

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

        $this->hasOne('CN_FIRMA as CN_FIRMA_5', array(
             'local' => 'id_firma',
             'foreign' => 'id_cia'));
    }
}