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

/**
 * BaseCO_CONTRATISTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_contratista
 * @property integer $id_nat_jur
 * @property integer $id_tipo_iden
 * @property integer $num_doc
 * @property integer $dv
 * @property string $nombre_razon
 * @property integer $telefono
 * @property integer $celular
 * @property string $direccion
 * @property string $email
 * @property string $representante_legal
 * @property Doctrine_Collection $CO_SEL_OFERENTE
 * 
 * @method integer             getIdContratista()       Returns the current record's "id_contratista" value
 * @method integer             getIdNatJur()            Returns the current record's "id_nat_jur" value
 * @method integer             getIdTipoIden()          Returns the current record's "id_tipo_iden" value
 * @method integer             getNumDoc()              Returns the current record's "num_doc" value
 * @method integer             getDv()                  Returns the current record's "dv" value
 * @method string              getNombreRazon()         Returns the current record's "nombre_razon" value
 * @method integer             getTelefono()            Returns the current record's "telefono" value
 * @method integer             getCelular()             Returns the current record's "celular" value
 * @method string              getDireccion()           Returns the current record's "direccion" value
 * @method string              getEmail()               Returns the current record's "email" value
 * @method string              getRepresentanteLegal()  Returns the current record's "representante_legal" value
 * @method Doctrine_Collection getCOSELOFERENTE()       Returns the current record's "CO_SEL_OFERENTE" collection
 * @method CO_CONTRATISTA      setIdContratista()       Sets the current record's "id_contratista" value
 * @method CO_CONTRATISTA      setIdNatJur()            Sets the current record's "id_nat_jur" value
 * @method CO_CONTRATISTA      setIdTipoIden()          Sets the current record's "id_tipo_iden" value
 * @method CO_CONTRATISTA      setNumDoc()              Sets the current record's "num_doc" value
 * @method CO_CONTRATISTA      setDv()                  Sets the current record's "dv" value
 * @method CO_CONTRATISTA      setNombreRazon()         Sets the current record's "nombre_razon" value
 * @method CO_CONTRATISTA      setTelefono()            Sets the current record's "telefono" value
 * @method CO_CONTRATISTA      setCelular()             Sets the current record's "celular" value
 * @method CO_CONTRATISTA      setDireccion()           Sets the current record's "direccion" value
 * @method CO_CONTRATISTA      setEmail()               Sets the current record's "email" value
 * @method CO_CONTRATISTA      setRepresentanteLegal()  Sets the current record's "representante_legal" value
 * @method CO_CONTRATISTA      setCOSELOFERENTE()       Sets the current record's "CO_SEL_OFERENTE" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_CONTRATISTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_CONTRATISTA');
        $this->hasColumn('id_contratista', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_nat_jur', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_iden', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dv', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('nombre_razon', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('telefono', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('celular', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('direccion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('email', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('representante_legal', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('ciudad', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('factor_rh', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_nacimiento', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('ciudad_nacimiento', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_tipo_regimen', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_doc_rep_leg', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CO_SEL_OFERENTE', array(
             'local' => 'id_contratista',
             'foreign' => 'id_contratista'));
    }
}