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

/**
 * BaseDEPARTAMENTOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $coddepto
 * @property string $desdepto
 * @property Doctrine_Collection $RE_TERCEROS
 * @property Doctrine_Collection $INTERCER_DU
 * 
 * @method string              getCoddepto()        Returns the current record's "coddepto" value
 * @method string              getDesdepto()        Returns the current record's "desdepto" value
 * @method Doctrine_Collection getRETERCEROS()      Returns the current record's "RE_TERCEROS" collection
 * @method Doctrine_Collection getINTERCERDUDIR()   Returns the current record's "INTERCER_DU_DIR" collection
 * @method Doctrine_Collection getINTERCERDU()      Returns the current record's "INTERCER_DU" collection
 * @method DEPARTAMENTOS       setCoddepto()        Sets the current record's "coddepto" value
 * @method DEPARTAMENTOS       setDesdepto()        Sets the current record's "desdepto" value
 * @method DEPARTAMENTOS       setRETERCEROS()      Sets the current record's "RE_TERCEROS" collection
 * @method DEPARTAMENTOS       setINTERCERDUDIR()   Sets the current record's "INTERCER_DU_DIR" collection
 * @method DEPARTAMENTOS       setINTERCERDU()      Sets the current record's "INTERCER_DU" collection_DIR
 * @property Doctrine_Collection $INTERCER_DU
 * 
 * @method string              getCoddepto()        Returns the current record's "coddepto" value
 * @method string              getDesdepto()        Returns the current record's "desdepto" value
 * @method Doctrine_Collection getRETERCEROS()      Returns the current record's "RE_TERCEROS" collection
 * @method Doctrine_Collection getINTERCERDUDIR()   Returns the current record's "INTERCER_DU_DIR" collection
 * @method Doctrine_Collection getINTERCERDU()      Returns the current record's "INTERCER_DU" collection
 * @method DEPARTAMENTOS       setCoddepto()        Sets the current record's "coddepto" value
 * @method DEPARTAMENTOS       setDesdepto()        Sets the current record's "desdepto" value
 * @method DEPARTAMENTOS       setRETERCEROS()      Sets the current record's "RE_TERCEROS" collection
 * @method DEPARTAMENTOS       setINTERCERDUDIR()   Sets the current record's "INTERCER_DU_DIR" collection
 * @method DEPARTAMENTOS       setINTERCERDU()      Sets the current record's "INTERCER_DU" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseDEPARTAMENTOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('DEPARTAMENTOS');
        $this->hasColumn('coddepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desdepto', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
    }

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

        $this->hasMany('INTERCER_DU_DIR', array(
             'local' => 'coddepto',
             'foreign' => 'coddepto'));

        $this->hasMany('INTERCER_DU', array(
             'local' => 'coddepto',
             'foreign' => 'copdepto'));
    }
}