/**
  * @param Image $image
  *
  * @return static
  * @throws \Exception
  */
 public function removeImage(Image $image)
 {
     $image->delete();
     return $this;
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => \romkaChev\yii2\images\behaviors\ImagesBehavior::className(), 'idAttribute' => 'id', 'modelClass' => \romkaChev\yii2\images\models\Image::className(), 'modelConfig' => []]];
 }