Doctrine\OXM\Mapping\ClassMetadata::getIdentifierValue PHP 메소드

getIdentifierValue() 공개 메소드

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

Usage Example

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