public function save($exchangeRate) { return parent::update(['value' => $exchangeRate['value']], ['currency' => $exchangeRate['currency']]); }
public function getChildren($parentProductId) { return parent::getBy(['parent_id' => $parentProductId]); }
public function delete($id) { return parent::deleteBy(['id' => $id]); }
public function getBaseLaboratoryByUrl($url) { return parent::getBy(['url' => $url])[0]; }
public function delete($catalogId, $productId) { return parent::deleteBy(['catalog_id' => $catalogId, 'product_id' => $productId]); }
public function getById($id) { return parent::getBy(['id' => $id])[0]; }