Documentation

IdentifierFlattener
in package

FinalYes

The IdentifierFlattener utility now houses some of the identifier manipulation logic from unit of work, so that it can be re-used elsewhere.

Table of Contents

Properties

$metadataFactory  : ClassMetadataFactory
The metadata factory, used to retrieve the ORM metadata of entity classes.
$unitOfWork  : UnitOfWork
The UnitOfWork used to coordinate object-level transactions.

Methods

__construct()  : mixed
Initializes a new IdentifierFlattener instance, bound to the given EntityManager.
flattenIdentifier()  : array<string|int, mixed>
convert foreign identifiers into scalar foreign key values to avoid object to string conversion failures.

Properties

Methods

flattenIdentifier()

convert foreign identifiers into scalar foreign key values to avoid object to string conversion failures.

public flattenIdentifier(ClassMetadata $class, array<string|int, mixed> $id) : array<string|int, mixed>
Parameters
$class : ClassMetadata
$id : array<string|int, mixed>
Tags
psalm-return

array<string, mixed>

Return values
array<string|int, mixed>

        
On this page

Search results