<?php

/**
 * BaseDataPointType
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $name
 * @property string $actionClass
 * @property Doctrine_Collection $DataPoint
 * 
 * @method integer             getId()          Returns the current record's "id" value
 * @method string              getName()        Returns the current record's "name" value
 * @method string              getActionClass() Returns the current record's "actionClass" value
 * @method Doctrine_Collection getDataPoint()   Returns the current record's "DataPoint" collection
 * @method DataPointType       setId()          Sets the current record's "id" value
 * @method DataPointType       setName()        Sets the current record's "name" value
 * @method DataPointType       setActionClass() Sets the current record's "actionClass" value
 * @method DataPointType       setDataPoint()   Sets the current record's "DataPoint" collection
 * 
 * @package    orangehrm
 * @subpackage model\beacon\base
 * @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'));
    }
}