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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
framework
EntityManager
Operation
Read
ReadMain.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\EntityManager\Operation\Read
;
8
9
use
Magento\Framework\EntityManager\TypeResolver
;
10
use
Magento\Framework\EntityManager\MetadataPool
;
11
use
Magento\Framework\EntityManager\HydratorPool
;
12
use
Magento\Framework\EntityManager\Db\ReadRow
;
13
14
class
ReadMain
15
{
19
private
$typeResolver;
20
24
private
$metadataPool;
25
29
private
$hydratorPool;
30
34
private
$readRow;
35
42
public
function
__construct
(
43
TypeResolver
$typeResolver,
44
MetadataPool
$metadataPool,
45
HydratorPool
$hydratorPool,
46
ReadRow
$readRow
47
) {
48
$this->typeResolver = $typeResolver;
49
$this->metadataPool = $metadataPool;
50
$this->hydratorPool = $hydratorPool;
51
$this->readRow = $readRow;
52
}
53
59
public
function
execute
(
$entity
, $identifier)
60
{
61
$entityType
= $this->typeResolver->resolve(
$entity
);
62
$hydrator = $this->hydratorPool->getHydrator(
$entityType
);
63
$entityData = $this->readRow->execute(
$entityType
, $identifier);
64
$entity
= $hydrator->hydrate(
$entity
, $entityData);
65
return
$entity
;
66
}
67
}
Magento\Framework\EntityManager\Db\ReadRow
Definition:
ReadRow.php:15
$entityType
$entityType
Definition:
attribute_set_with_image_attribute.php:13
Magento\Framework\EntityManager\HydratorPool
Definition:
HydratorPool.php:13
Magento\Framework\EntityManager\MetadataPool
Definition:
MetadataPool.php:18
Magento\Framework\EntityManager\TypeResolver
Definition:
TypeResolver.php:11
Magento\Framework\EntityManager\Operation\Read\ReadMain\execute
execute($entity, $identifier)
Definition:
ReadMain.php:59
Magento\Framework\EntityManager\Operation\Read\ReadMain\__construct
__construct(TypeResolver $typeResolver, MetadataPool $metadataPool, HydratorPool $hydratorPool, ReadRow $readRow)
Definition:
ReadMain.php:42
$entity
$entity
Definition:
element.phtml:22
Magento\Framework\EntityManager\Operation\Read
Definition:
ReadAttributes.php:6
Magento\Framework\EntityManager\Operation\Read\ReadMain
Definition:
ReadMain.php:14