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

/**
 * BaseACTO_ADMINISTRATIVO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_act_adm
 * @property string $nombre
 * @property Doctrine_Collection $TS_ACT_BEN_REG
 * @property Doctrine_Collection $TS_ACT_BEN_REG_7
 * 
 * @method integer             getIdActAdm()         Returns the current record's "id_act_adm" value
 * @method string              getNombre()           Returns the current record's "nombre" value
 * @method Doctrine_Collection getTSACTBENREG()      Returns the current record's "TS_ACT_BEN_REG" collection
 * @method Doctrine_Collection getTSACTBENREG7()     Returns the current record's "TS_ACT_BEN_REG_7" collection
 * @method ACTO_ADMINISTRATIVO setIdActAdm()         Sets the current record's "id_act_adm" value
 * @method ACTO_ADMINISTRATIVO setNombre()           Sets the current record's "nombre" value
 * @method ACTO_ADMINISTRATIVO setTSACTBENREG()      Sets the current record's "TS_ACT_BEN_REG" collection
 * @method ACTO_ADMINISTRATIVO setTSACTBENREG7()     Sets the current record's "TS_ACT_BEN_REG_7" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseACTO_ADMINISTRATIVO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ACTO_ADMINISTRATIVO');
        $this->hasColumn('id_act_adm', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

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

        $this->hasMany('TS_ACT_BEN_REG as TS_ACT_BEN_REG_7', array(
             'local' => 'id_act_adm',
             'foreign' => 'id_act_adm_sus'));
    }
}