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

/**
 * BaseRE_TERCEROS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mae_ter
 * @property string $coddepto
 * @property string $codmun
 * @property string $repres
 * @property string $ciudad
 * @property string $direccion
 * @property string $telefono
 * @property string $email
 * @property string $prefijo
 * @property string $claben
 * @property integer $fonpet
 * @property DEPARTAMENTOS $DEPARTAMENTOS
 * @property INTERCEROS $INTERCEROS
 * 
 * @method integer       getIdMaeTer()      Returns the current record's "id_mae_ter" value
 * @method string        getCoddepto()      Returns the current record's "coddepto" value
 * @method string        getCodmun()        Returns the current record's "codmun" value
 * @method string        getRepres()        Returns the current record's "repres" value
 * @method string        getCiudad()        Returns the current record's "ciudad" value
 * @method string        getDireccion()     Returns the current record's "direccion" value
 * @method string        getTelefono()      Returns the current record's "telefono" value
 * @method string        getEmail()         Returns the current record's "email" value
 * @method string        getPrefijo()       Returns the current record's "prefijo" value
 * @method string        getClaben()        Returns the current record's "claben" value
 * @method integer       getFonpet()        Returns the current record's "fonpet" value
 * @method DEPARTAMENTOS getDEPARTAMENTOS() Returns the current record's "DEPARTAMENTOS" value
 * @method INTERCEROS    getINTERCEROS()    Returns the current record's "INTERCEROS" value
 * @method RE_TERCEROS   setIdMaeTer()      Sets the current record's "id_mae_ter" value
 * @method RE_TERCEROS   setCoddepto()      Sets the current record's "coddepto" value
 * @method RE_TERCEROS   setCodmun()        Sets the current record's "codmun" value
 * @method RE_TERCEROS   setRepres()        Sets the current record's "repres" value
 * @method RE_TERCEROS   setCiudad()        Sets the current record's "ciudad" value
 * @method RE_TERCEROS   setDireccion()     Sets the current record's "direccion" value
 * @method RE_TERCEROS   setTelefono()      Sets the current record's "telefono" value
 * @method RE_TERCEROS   setEmail()         Sets the current record's "email" value
 * @method RE_TERCEROS   setPrefijo()       Sets the current record's "prefijo" value
 * @method RE_TERCEROS   setClaben()        Sets the current record's "claben" value
 * @method RE_TERCEROS   setFonpet()        Sets the current record's "fonpet" value
 * @method RE_TERCEROS   setDEPARTAMENTOS() Sets the current record's "DEPARTAMENTOS" value
 * @method RE_TERCEROS   setINTERCEROS()    Sets the current record's "INTERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_TERCEROS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_TERCEROS');
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('coddepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codmun', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('repres', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('ciudad', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('direccion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('email', 'string', 80, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 80,
             ));
        $this->hasColumn('prefijo', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('claben', 'string', 2, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('fonpet', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}