class IdReader
A utility for reading object IDs.
Methods
__construct(ObjectManager $om, ClassMetadata $classMetadata) | ||
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
__construct(ObjectManager $om, ClassMetadata $classMetadata)
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.
This method assumes that the object has a single-column ID.
string getIdField()
Returns the name of the ID field.
This method assumes that the object has a single-column ID.
Please login to continue.