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

/**
 * BaseCO_ABOGADO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_abogado
 * @property integer $id_mae_ter
 * @property integer $estado
 * @property Doctrine_Collection $CO_ESTUDIOS_PREVIOS
 * 
 * @method integer             getIdAbogado()           Returns the current record's "id_abogado" 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 getCOESTUDIOSPREVIOS()   Returns the current record's "CO_ESTUDIOS_PREVIOS" collection
 * @method CO_ABOGADO          setIdAbogado()           Sets the current record's "id_abogado" value
 * @method CO_ABOGADO          setIdMaeTer()            Sets the current record's "id_mae_ter" value
 * @method CO_ABOGADO          setEstado()              Sets the current record's "estado" value
 * @method CO_ABOGADO          setCOESTUDIOSPREVIOS()   Sets the current record's "CO_ESTUDIOS_PREVIOS" 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_ABOGADO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_ABOGADO');
        $this->hasColumn('id_abogado', '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_ESTUDIOS_PREVIOS', array(
             'local' => 'id_abogado',
             'foreign' => 'id_abogado'));
    }
}