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
framework
EntityManager
CompositeMapper.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\EntityManager
;
7
11
class
CompositeMapper
implements
MapperInterface
12
{
16
private
$mappers;
17
21
public
function
__construct
(
22
$mappers
23
) {
24
$this->mappers = $mappers;
25
}
26
30
public
function
entityToDatabase
(
$entityType
,
$data
)
31
{
32
foreach
($this->mappers as $mapper) {
33
$data
= $mapper->entityToDatabase(
$entityType
,
$data
);
34
}
35
return
$data
;
36
}
37
41
public
function
databaseToEntity
(
$entityType
,
$data
)
42
{
43
foreach
($this->mappers as $mapper) {
44
$data
= $mapper->databaseToEntity(
$entityType
,
$data
);
45
}
46
return
$data
;
47
}
48
}
Magento\Framework\EntityManager\CompositeMapper\databaseToEntity
databaseToEntity($entityType, $data)
Definition:
CompositeMapper.php:41
Magento\Framework\EntityManager\CompositeMapper
Definition:
CompositeMapper.php:11
$entityType
$entityType
Definition:
attribute_set_with_image_attribute.php:13
Magento\Framework\EntityManager
Definition:
AbstractModelHydrator.php:6
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\EntityManager\MapperInterface
Definition:
MapperInterface.php:11
Magento\Framework\EntityManager\CompositeMapper\__construct
__construct( $mappers)
Definition:
CompositeMapper.php:21
Magento\Framework\EntityManager\CompositeMapper\entityToDatabase
entityToDatabase($entityType, $data)
Definition:
CompositeMapper.php:30