Example #1
0
 /**
  * Retrieve select object for loading base entity row
  *
  * @param \Magento\Framework\Object $object
  * @param string|int $rowId
  * @return \Magento\Framework\DB\Select
  */
 protected function _getLoadRowSelect($object, $rowId)
 {
     $select = parent::_getLoadRowSelect($object, $rowId);
     if ($object->getWebsiteId() && $object->getSharingConfig()->isWebsiteScope()) {
         $select->where('website_id =?', (int) $object->getWebsiteId());
     }
     return $select;
 }