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

/**
 * BaseCO_TERCEROS_FLUJOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $ID
 * @property integer $id_mae_ter
 * @property integer $estado
 * @property Doctrine_Collection $CO_ESTUDIOS_PREVIOS
 * 
 * @method integer             getId()                  Returns the current record's "id" value
 * @method integer             getIdMaeTer()            Returns the current record's "id_mae_ter" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @package    contratacion
 * @subpackage model
 * @author     Manuel Enrique Paredes Lopez
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_TERCEROS_FLUJOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_TERCEROS_FLUJOS');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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