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

/**
 * BaseCO_SUPERVISOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_supervisor
 * @property integer $id_mae_ter
 * @property integer $estado
 * @property Doctrine_Collection $CO_CONTRATO
 * 
 * @method integer             getIdSupervisor()  Returns the current record's "id_supervisor" value
 * @method integer             getIdMaeTer()      Returns the current record's "id_mae_ter" value
 * @method integer             getEstado()        Returns the current record's "estado" value
 * @method Doctrine_Collection getCOCONTRATO()    Returns the current record's "CO_CONTRATO" collection
 * @method CO_SUPERVISOR       setIdSupervisor()  Sets the current record's "id_supervisor" value
 * @method CO_SUPERVISOR       setIdMaeTer()      Sets the current record's "id_mae_ter" value
 * @method CO_SUPERVISOR       setEstado()        Sets the current record's "estado" value
 * @method CO_SUPERVISOR       setCOCONTRATO()    Sets the current record's "CO_CONTRATO" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_SUPERVISOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SUPERVISOR');
        $this->hasColumn('id_supervisor', '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('CO_CONTRATO', array(
             'local' => 'id_supervisor',
             'foreign' => 'id_supervisor'));
    }
}