public function attach($owner)
	{
		parent::attach($owner);
		
		if( $this->owner instanceof \yii\db\BaseActiveRecord ) {
			if( ! $this->owner->hasAttribute($this->statusAttribute) &&  ! $this->owner->hasProperty($this->statusAttribute) ) {
				throw new InvalidConfigException('Attribute or property not found for owner model : \''.$this->statusAttribute.'\'');
			}
		}elseif($this->owner instanceof \yii\base\BaseObject) {
			if(   ! $this->owner->hasProperty($this->statusAttribute) ) {
				throw new InvalidConfigException('Property not found for owner model : \''.$this->statusAttribute.'\'');
			}			
		}
		
		$this->initStatus();
		if( ! $this->hasWorkflowStatus()) {
			$this->doAutoInsert();
		}
	}