class IdReader

A utility for reading object IDs.

Methods

__construct(ObjectManager $om, ClassMetadata $classMetadata)

No description

bool
isSingleId()

Returns whether the class has a single-column ID.

bool
isIntId()

Returns whether the class has a single-column integer ID.

mixed
getIdValue(object $object)

Returns the ID value for an object.

string
getIdField()

Returns the name of the ID field.

Details

at line line 59
__construct(ObjectManager $om, ClassMetadata $classMetadata)

Parameters

ObjectManager $om
ClassMetadata $classMetadata

at line line 87
bool isSingleId()

Returns whether the class has a single-column ID.

Return Value

bool Returns true if the class has a single-column ID and false otherwise.

at line line 98
bool isIntId()

Returns whether the class has a single-column integer ID.

Return Value

bool Returns true if the class has a single-column integer ID and false otherwise.

at line line 112
mixed getIdValue(object $object)

Returns the ID value for an object.

This method assumes that the object has a single-column ID.

Parameters

object $object The object.

Return Value

mixed The ID value.

at line line 143
string getIdField()

Returns the name of the ID field.

This method assumes that the object has a single-column ID.

Return Value

string The name of the ID field.