Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (OperationPool $operationPool, MetadataPool $metadataPool, TypeResolver $typeResolver, CallbackHandler $callbackHandler) | |
load ($entity, $identifier, $arguments=[]) | |
save ($entity, $arguments=[]) | |
has ($entity) | |
delete ($entity, $arguments=[]) | |
It's not recommended to use EntityManager and its infrastructure for your entities persistence. In the nearest future new Persistence Entity Manager would be released which will cover all the requirements for persistence layer along with Query API as performance efficient APIs for Read scenarios.
Currently, it's recommended to use Resource Model infrastructure and make a successor of Magento\Framework\Model\ResourceModel\Db\AbstractDb class or successor of Magento\Eav\Model\Entity\AbstractEntity if EAV attributes support needed.
For filtering operations, it's recommended to use successor of Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection class.
Definition at line 26 of file EntityManager.php.
__construct | ( | OperationPool | $operationPool, |
MetadataPool | $metadataPool, | ||
TypeResolver | $typeResolver, | ||
CallbackHandler | $callbackHandler | ||
) |
OperationPool | $operationPool | |
MetadataPool | $metadataPool | |
TypeResolver | $typeResolver | |
CallbackHandler | $callbackHandler |
Definition at line 44 of file EntityManager.php.
delete | ( | $entity, | |
$arguments = [] |
|||
) |
object | $entity | |
array | $arguments |
Definition at line 127 of file EntityManager.php.
has | ( | $entity | ) |
object | $entity |
Definition at line 110 of file EntityManager.php.
load | ( | $entity, | |
$identifier, | |||
$arguments = [] |
|||
) |
object | $entity | |
string | $identifier | |
array | $arguments |
Definition at line 63 of file EntityManager.php.
save | ( | $entity, | |
$arguments = [] |
|||
) |
object | $entity | |
array | $arguments |
Definition at line 81 of file EntityManager.php.