public function deleteViaIds($ids)
    {
        return !$ids ||
        \Yii::$app->db->createCommand()->delete(
            $this->viaTable,
            array_merge($this->condition, [reset($this->relationAttribute) => $ids])
        )->execute();
    }
public function deleteViaIds($ids)
    {
        return !$ids ||
        \Yii::$app->db->createCommand()->delete(
            $this->viaTable,
            array_merge($this->condition, [reset($this->relationAttribute) => $ids])
        )->execute();
    }
public function deleteViaIds ( $ ids ) { return ! $ ids || \ Yii :: $ app -> db -> createCommand ( ) -> delete ( $ this -> viaTable , array_merge ( $ this -> condition , [ reset ( $ this -> relationAttribute ) => $ ids ] ) ) -> execute ( ) ; }
Deletes relation data
@param $ids
@return bool|int
@throws \yii\db\Exception
Deletes relation data