Skip to content

Commit 12006e1

Browse files
author
Valeriy Nayda
committed
MAGETWO-70716: Provide entity manager description
1 parent 4858228 commit 12006e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
* persistence layer along with Query API as performance efficient APIs for Read scenarios.
1818
*
1919
* Currently, it's recommended to use Resource Model infrastructure and make a successor of
20-
* Magento\Framework\Model\ResourceModel\Db\AbstractDb class.
20+
* Magento\Framework\Model\ResourceModel\Db\AbstractDb class or successor of
21+
* Magento\Eav\Model\Entity\AbstractEntity if EAV attributes support needed.
2122
*
2223
* For filtering operations, it's recommended to use successor of
2324
* Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection class.
25+
*
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2427
*/
2528
class EntityManager
2629
{

lib/internal/Magento/Framework/EntityManager/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ In the nearest future new Persistence Entity Manager would be released which wil
99
persistence layer along with Query API as performance efficient APIs for Read scenarios.
1010

1111
Currently, it's recommended to use Resource Model infrastructure and make a successor of
12-
Magento\Framework\Model\ResourceModel\Db\AbstractDb class.
12+
Magento\Framework\Model\ResourceModel\Db\AbstractDb class or successor of
13+
Magento\Eav\Model\Entity\AbstractEntity if EAV attributes support needed.
1314

1415
For filtering operations, it's recommended to use successor of
1516
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection class.

0 commit comments

Comments
 (0)