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

/**
 * BaseCA_AREA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_area
 * @property string $nombre
 * @property string $descripcion
 * @property integer $estado
 * @property Doctrine_Collection $CA_PRODUCTO
 * 
 * @method integer             getIdArea()      Returns the current record's "id_area" value
 * @method string              getNombre()      Returns the current record's "nombre" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method integer             getEstado()      Returns the current record's "estado" value
 * @method Doctrine_Collection getCAPRODUCTO()  Returns the current record's "CA_PRODUCTO" collection
 * @method CA_AREA             setIdArea()      Sets the current record's "id_area" value
 * @method CA_AREA             setNombre()      Sets the current record's "nombre" value
 * @method CA_AREA             setDescripcion() Sets the current record's "descripcion" value
 * @method CA_AREA             setEstado()      Sets the current record's "estado" value
 * @method CA_AREA             setCAPRODUCTO()  Sets the current record's "CA_PRODUCTO" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_AREA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_AREA');
        $this->hasColumn('id_area', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 64, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
    }

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