Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-review
Model
ResourceModel
Rating
Entity.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Review\Model\ResourceModel\Rating
;
7
13
class
Entity
extends
\Magento\Framework\Model\ResourceModel\Db\AbstractDb
14
{
20
protected
function
_construct
()
21
{
22
$this->
_init
(
'rating_entity'
,
'entity_id'
);
23
}
24
31
public
function
getIdByCode
($entityCode)
32
{
33
$connection
= $this->
getConnection
();
34
35
$select
=
$connection
->select()->from(
36
$this->
getTable
(
'rating_entity'
),
37
$this->
getIdFieldName
()
38
)->where(
39
'entity_code = :entity_code'
40
);
41
return
$connection
->fetchOne(
$select
, [
':entity_code'
=> $entityCode]);
42
}
43
}
Magento\Review\Model\ResourceModel\Rating\Entity\_construct
_construct()
Definition:
Entity.php:20
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getIdFieldName
getIdFieldName()
Definition:
AbstractDb.php:248
Magento\Review\Model\ResourceModel\Rating
Definition:
CollectionTest.php:6
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\Review\Model\ResourceModel\Rating\Entity\getIdByCode
getIdByCode($entityCode)
Definition:
Entity.php:31
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getTable
getTable($tableName)
Definition:
AbstractDb.php:279
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
Magento\Review\Model\ResourceModel\Rating\Entity
Definition:
Entity.php:13
$connection
$connection
Definition:
bulk.php:13
Magento\Framework\Model\ResourceModel\Db\AbstractDb\getConnection
getConnection()
Definition:
AbstractDb.php:325