public function save()
{
if ($this->model->getKey() !== '') {
foreach ($this->model->getTranslations() as $language => $text) {
$data = ["key" => $this->model->getKey(), "language" => $language, "text" => $text, "modificationDate" => $this->model->getModificationDate(), "creationDate" => $this->model->getCreationDate()];
$this->db->insertOrUpdate(static::getTableName(), $data);
}
}
$this->model->clearDependentCache();
}