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

/**
 * BaseCONTRATISTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_doc
 * @property integer $num_doc
 * @property string $razon_social
 * @property string $ciudad
 * @property string $telefono
 * @property string $direccion
 * @property string $email
 * @property string $estado
 * @property string $primer_nombre
 * @property string $segundo_nombre
 * @property string $primer_apellido
 * @property string $segundo_apellido
 * @property TIPO_DOCUMENTO $TIPO_DOCUMENTO
 * 
 * @method integer        getIdTipoDoc()        Returns the current record's "id_tipo_doc" value
 * @method integer        getNumDoc()           Returns the current record's "num_doc" value
 * @method string         getRazonSocial()      Returns the current record's "razon_social" value
 * @method string         getCiudad()           Returns the current record's "ciudad" value
 * @method string         getTelefono()         Returns the current record's "telefono" value
 * @method string         getDireccion()        Returns the current record's "direccion" value
 * @method string         getEmail()            Returns the current record's "email" value
 * @method string         getEstado()           Returns the current record's "estado" value
 * @method string         getPrimerNombre()     Returns the current record's "primer_nombre" value
 * @method string         getSegundoNombre()    Returns the current record's "segundo_nombre" value
 * @method string         getPrimerApellido()   Returns the current record's "primer_apellido" value
 * @method string         getSegundoApellido()  Returns the current record's "segundo_apellido" value
 * @method TIPO_DOCUMENTO getTIPODOCUMENTO()    Returns the current record's "TIPO_DOCUMENTO" value
 * @method CONTRATISTA    setIdTipoDoc()        Sets the current record's "id_tipo_doc" value
 * @method CONTRATISTA    setNumDoc()           Sets the current record's "num_doc" value
 * @method CONTRATISTA    setRazonSocial()      Sets the current record's "razon_social" value
 * @method CONTRATISTA    setCiudad()           Sets the current record's "ciudad" value
 * @method CONTRATISTA    setTelefono()         Sets the current record's "telefono" value
 * @method CONTRATISTA    setDireccion()        Sets the current record's "direccion" value
 * @method CONTRATISTA    setEmail()            Sets the current record's "email" value
 * @method CONTRATISTA    setEstado()           Sets the current record's "estado" value
 * @method CONTRATISTA    setPrimerNombre()     Sets the current record's "primer_nombre" value
 * @method CONTRATISTA    setSegundoNombre()    Sets the current record's "segundo_nombre" value
 * @method CONTRATISTA    setPrimerApellido()   Sets the current record's "primer_apellido" value
 * @method CONTRATISTA    setSegundoApellido()  Sets the current record's "segundo_apellido" value
 * @method CONTRATISTA    setTIPODOCUMENTO()    Sets the current record's "TIPO_DOCUMENTO" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONTRATISTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONTRATISTA');
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('razon_social', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('ciudad', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('direccion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('email', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('primer_nombre', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('segundo_nombre', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('primer_apellido', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('segundo_apellido', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('id_tipo_contratista', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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