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

/**
 * BaseRVC_DECLARA_OTRA_ENTIDET
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     ManuelEnriqueParedesLopez
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_DECLARA_OTRA_ENTIDET extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_DECLARA_OTRA_ENTIDET');
        $this->hasColumn('id_declara_otra_entidet', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_declara_otra_entid', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('entidad_publica', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('no_contrato', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_mensualizado', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre_supervisor', 'string', 200, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('telefono_supervisor', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        
    }

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

    }
}