<?php

/**
 * BaseDataPointType
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                              $id                                    Type: integer, primary key
 * @property string                           $name                                  Type: string(100)
 * @property string                           $actionClass                           Type: string(255)
 * @property Doctrine_Collection|DataPoint[]  $DataPoint                             
 *  
 * @method int                                getId()                                Type: integer, primary key
 * @method string                             getName()                              Type: string(100)
 * @method string                             getActionclass()                       Type: string(255)
 * @method Doctrine_Collection|DataPoint[]    getDataPoint()                         
 *  
 * @method DataPointType                      setId(int $val)                        Type: integer, primary key
 * @method DataPointType                      setName(string $val)                   Type: string(100)
 * @method DataPointType                      setActionclass(string $val)            Type: string(255)
 * @method DataPointType                      setDataPoint(Doctrine_Collection $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseDataPointType extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_datapoint_type');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('name', 'string', 100, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 100,
             ));
        $this->hasColumn('action_class as actionClass', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
    }

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