Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Video.php
Go to the documentation of this file.
1 <?php
7 
9 {
15  public function _construct()
16  {
17  $this->_init('catalog_product_entity_media_gallery_value_video', 'value_id');
18  }
19 
26  public function insertOnDuplicate(array $data, array $fields = [])
27  {
28  return $this->getConnection()->insertOnDuplicate($this->getMainTable(), $data, $fields);
29  }
30 
36  public function loadByIds(array $ids)
37  {
38  $select = $this->getConnection()->select()->from(
39  $this->getMainTable()
40  )->where(
41  'value_id IN(?)',
42  $ids
43  );
44 
45  return $this->getConnection()->fetchAll($select);
46  }
47 }
$fields
Definition: details.phtml:14
insertOnDuplicate(array $data, array $fields=[])
Definition: Video.php:26