mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented LazyLoading of Entity in RequestedEntity
This commit is contained in:
@@ -4,13 +4,14 @@ namespace App\Domain\RequestManagement\Entity;
|
||||
|
||||
use App\Entity\EntityInterface;
|
||||
use App\Attribut\SlugAttributInterface;
|
||||
use App\Attribut\RequestedRightAttributInterface;
|
||||
|
||||
/**
|
||||
* A requested entity containes the stumb attributes to load an entity.
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface RequestedEntityInterface extends EntityInterface, SlugAttributInterface
|
||||
interface RequestedEntityInterface extends EntityInterface, SlugAttributInterface, RequestedRightAttributInterface
|
||||
{
|
||||
/**
|
||||
* Sets the slug or the id.
|
||||
@@ -18,4 +19,9 @@ interface RequestedEntityInterface extends EntityInterface, SlugAttributInterfac
|
||||
* @param string|int $identity
|
||||
*/
|
||||
public function setIdentity($identity): void;
|
||||
|
||||
/**
|
||||
* @return EntityInterface
|
||||
*/
|
||||
public function getEntity(): EntityInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user