CreateIfMissing
in package
implements
EntityReplayPolicy
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- resolve() : TEntity
Methods
__construct()
public
__construct(callable(mixed): T $factory) : mixed
Parameters
- $factory : callable(mixed): T
resolve()
public
resolve(EntityManagerInterface $em, TEntity> $entityClass, mixed $id) : TEntity
Parameters
- $em : EntityManagerInterface
- $entityClass : TEntity>
- $id : mixed
Tags
Attributes
- #[Override]