class ObjectIdentifier (View source)

Object identifier utility

Methods

static boolean
equals(array $a, array $b)

Indicates if two object identity are equal.

static array
trim(array $id, ClassMetadata $metadata, boolean $trimNull = false)

Remove all keys of $id that are not in the list of identifier field names

static 
normalize($id, ClassMetadata $metadata)

No description

Details

static boolean equals(array $a, array $b)

Indicates if two object identity are equal.

Parameters

array $a First identifier
array $b Second identifier

Return Value

boolean

static array trim(array $id, ClassMetadata $metadata, boolean $trimNull = false)

Remove all keys of $id that are not in the list of identifier field names

Parameters

array $id Object identifier
ClassMetadata $metadata Object class metadata
boolean $trimNull Remove NULL fields

Return Value

array Trimmed identifier

static normalize($id, ClassMetadata $metadata)

Parameters

$id
ClassMetadata $metadata