-
Notifications
You must be signed in to change notification settings - Fork 1
/
ApiEntityManager.php
42 lines (36 loc) · 1003 Bytes
/
ApiEntityManager.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace Bankiru\Api\Doctrine;
use Bankiru\Api\Doctrine\Mapping\ApiMetadata;
use Bankiru\Api\Doctrine\Proxy\ProxyFactory;
use Doctrine\Common\Persistence\ObjectManager;
/**
* Interface ApiEntityManager
*
* @package Bankiru\Api\Doctrine
* @method ApiMetadata getClassMetadata($className)
*/
interface ApiEntityManager extends ObjectManager
{
/**
* @return Configuration
*/
public function getConfiguration();
/**
* @return ProxyFactory
*/
public function getProxyFactory();
/**
* @return UnitOfWork
*/
public function getUnitOfWork();
/**
* Gets a reference to the entity identified by the given type and identifier
* without actually loading it, if the entity is not yet loaded.
*
* @param string $entityName The name of the entity type.
* @param mixed $id The entity identifier.
*
* @return object The entity reference.
*/
public function getReference($entityName, $id);
}