![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-product-video/Model/ResourceModel/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\ProductVideo\Model\ResourceModel; class Video extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { /** * Resource initialization * * @return void */ public function _construct() { $this->_init('catalog_product_entity_media_gallery_value_video', 'value_id'); } /** * @param array $data * @param array $fields * @return int * @throws \Magento\Framework\Exception\LocalizedException */ public function insertOnDuplicate(array $data, array $fields = []) { return $this->getConnection()->insertOnDuplicate($this->getMainTable(), $data, $fields); } /** * @param array $ids * @return array * @throws \Magento\Framework\Exception\LocalizedException */ public function loadByIds(array $ids) { $select = $this->getConnection()->select()->from( $this->getMainTable() )->where( 'value_id IN(?)', $ids, \Zend_Db::INT_TYPE ); return $this->getConnection()->fetchAll($select); } }