Doctrine\OXM\Mapping\ClassMetadata::getIdentifierValue PHP Méthode

getIdentifierValue() public méthode

Gets the document identifier.
public getIdentifierValue ( object $xmlEntity ) : string
$xmlEntity object
Résultat string $id
    public function getIdentifierValue($xmlEntity)
    {
        return (string) $this->reflFields[$this->identifier]->getValue($xmlEntity);
    }

Usage Example

 public function delete($xmlEntity, array $options = array())
 {
     return $this->storage->delete($this->metadata, $this->metadata->getIdentifierValue($xmlEntity));
 }