class IdReader
A utility for reading object IDs.
__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. |
ObjectManager | $om | |
ClassMetadata | $classMetadata |
Returns whether the class has a single-column ID.
bool | returns true if the class has a single-column ID and false otherwise |
Returns whether the class has a single-column integer ID.
bool | returns true if the class has a single-column integer ID and false otherwise |
Returns the ID value for an object.
This method assumes that the object has a single-column ID.
object | $object | The object |
mixed | The ID value |
Returns the name of the ID field.
This method assumes that the object has a single-column ID.
string | The name of the ID field |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.html