<?php

/**
 * BaseWorkflowStateMachine
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                   $id                            Type: integer, primary key
 * @property string                $workflow                      Type: string(255)
 * @property string                $state                         Type: string(255)
 * @property string                $role                          Type: string(255)
 * @property string                $action                        Type: string(255)
 * @property string                $resultingState                Type: string(255)
 * @property string                $roles_to_notify               Type: clob
 * @property int                   $priority                      Type: int
 *  
 * @method int                     getId()                        Type: integer, primary key
 * @method string                  getWorkflow()                  Type: string(255)
 * @method string                  getState()                     Type: string(255)
 * @method string                  getRole()                      Type: string(255)
 * @method string                  getAction()                    Type: string(255)
 * @method string                  getResultingstate()            Type: string(255)
 * @method string                  getRolesToNotify()             Type: clob
 * @method int                     getPriority()                  Type: int
 *  
 * @method WorkflowStateMachine    setId(int $val)                Type: integer, primary key
 * @method WorkflowStateMachine    setWorkflow(string $val)       Type: string(255)
 * @method WorkflowStateMachine    setState(string $val)          Type: string(255)
 * @method WorkflowStateMachine    setRole(string $val)           Type: string(255)
 * @method WorkflowStateMachine    setAction(string $val)         Type: string(255)
 * @method WorkflowStateMachine    setResultingstate(string $val) Type: string(255)
 * @method WorkflowStateMachine    setRolesToNotify(string $val)  Type: clob
 * @method WorkflowStateMachine    setPriority(int $val)          Type: int
 *  
 * @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,
             'autoincrement' => 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,
             ));
        $this->hasColumn('roles_to_notify', 'clob', null, array(
             'type' => 'clob',
             'notnull' => false,
             ));
        $this->hasColumn('priority', 'int', null, array(
             'type' => 'int',
             ));
    }

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