Note: this returns an identifier even if the object has not been
persisted in case of AOP-managed entities. Use isNewObject() if you need
to distinguish those cases.
public getIdentifierByObject ( object $object ) : mixed | ||
$object | object | |
Résultat | mixed | The identifier for the object if it is known, or NULL |