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