src/aws/FlowActiveWindowTrait.php
public function flowSaveImage(Item $image)
    {
        Yii::$app->db->createCommand()->insert($this->getConfigValue('table'), [
            $this->getConfigValue('itemField') => $this->id,
            $this->getConfigValue('imageField') => $image->id,
        ])->execute();
    }
public function flowSaveImage(Item $image)
    {
        Yii::$app->db->createCommand()->insert($this->getConfigValue('table'), [
            $this->getConfigValue('itemField') => $this->id,
            $this->getConfigValue('imageField') => $image->id,
        ])->execute();
    }
public function flowSaveImage ( Item $ image ) { Yii :: $ app -> db -> createCommand ( ) -> insert ( $ this -> getConfigValue ( 'table' ) , [ $ this -> getConfigValue ( 'itemField' ) => $ this -> id , $ this -> getConfigValue ( 'imageField' ) => $ image -> id , ] ) -> execute ( ) ; }
This method will be called when the storage item is created, so you can perform the database save action
by implementing this method.

@param \admin\image\Item $image The storage image item object which has been generated from active window.
This method will be called when the storage item is created so you can perform the database save action by implementing this method .