Hi all,
I’m getting the below error when trying to use the simpleworkflow extension. Thanks in advance.
========
SWException
attribute status not found
C:\xampp\htdocs\smfyii\protected\extensions\simpleWorkflow\SWActiveRecordBehavior.php(258)
246 CLogger::LEVEL_WARNING,self::SW_LOG_CATEGORY);
247 }
248 $this->enableEvent=false; // force
249 }
250
251 parent::attach($owner);
252
253 if( $this->getOwner() instanceof CActiveRecord ){
254
255 $statusAttributeCol = $this->getOwner()->getTableSchema()->getColumn($this->statusAttribute);
256 if(!isset($statusAttributeCol) || $statusAttributeCol->type != ‘string’ )
257 {
258 throw new SWException(Yii::t(self::SW_I8N_CATEGORY,‘attribute {attr} not found’,
259 array(’{attr}’=>$this->statusAttribute)),SWException::SW_ERR_ATTR_NOT_FOUND);