<?php

/**
 * BaseWorkflowStateMachine
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $workflow
 * @property string $state
 * @property string $role
 * @property string $action
 * @property string $resultingState
 * 
 * @method integer              getId()             Returns the current record's "id" value
 * @method string               getWorkflow()       Returns the current record's "workflow" value
 * @method string               getState()          Returns the current record's "state" value
 * @method string               getRole()           Returns the current record's "role" value
 * @method string               getAction()         Returns the current record's "action" value
 * @method string               getResultingState() Returns the current record's "resultingState" value
 * @method WorkflowStateMachine setId()             Sets the current record's "id" value
 * @method WorkflowStateMachine setWorkflow()       Sets the current record's "workflow" value
 * @method WorkflowStateMachine setState()          Sets the current record's "state" value
 * @method WorkflowStateMachine setRole()           Sets the current record's "role" value
 * @method WorkflowStateMachine setAction()         Sets the current record's "action" value
 * @method WorkflowStateMachine setResultingState() Sets the current record's "resultingState" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseWorkflowStateMachine extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_workflow_state_machine');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('workflow', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('state', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('role', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('action', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('resulting_state as resultingState', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}