Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a1043c9

Browse files
author
Valeriy Nayda
committed
MAGETWO-70716: Provide entity manager description
1 parent 96fca03 commit a1043c9

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

lib/internal/Magento/Framework/EntityManager/EntityManager.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313

1414
/**
1515
* Class EntityManager
16+
*
17+
* It's not recommended to use EntityManager and its infrastructure for your entity persistence.
18+
* In the nearest future new Persistence Entity Manager would be released which will cover all the requirements for
19+
* persistence layer along with Query API as performance efficient APIs for Read scenarios.
20+
*
21+
* Currently, it's recommended to use Resource Model infrastructure and make a successor of
22+
* Magento\Framework\Model\ResourceModel\Db\AbstractDb class.
23+
*
24+
* For filtering operations, it's recommended to use successor of
25+
* Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1626
*/
1727
class EntityManager
1828
{
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# EntityManager
22

33
**EntityManager** library contains functionality for management entity instances.
4-
It includes read and write operations as for entity as for their attributes and extensions.
4+
It includes read and write operations as for entity as for their attributes and extensions.
5+
6+
It's not recommended to use EntityManager and its infrastructure for your entity persistence.
7+
In the nearest future new Persistence Entity Manager would be released which will cover all the requirements for
8+
persistence layer along with Query API as performance efficient APIs for Read scenarios.
9+
10+
Currently, it's recommended to use Resource Model infrastructure and make a successor of
11+
Magento\Framework\Model\ResourceModel\Db\AbstractDb class.
12+
13+
For filtering operations, it's recommended to use successor of
14+
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection

0 commit comments

Comments
 (0)