public function convertObjectToIdentityArray($object)
    {
        $identifier = $this->getIdentifierByObject($object);
        if ($identifier === null) {
            throw new Exception\UnknownObjectException(sprintf('Tried to convert an object of type "%s" to an identity array, but it is unknown to the Persistence Manager.', get_class($object)), 1302628242);
        }
        return ['__identity' => $identifier];
    }
public function convertObjectToIdentityArray($object)
    {
        $identifier = $this->getIdentifierByObject($object);
        if ($identifier === null) {
            throw new Exception\UnknownObjectException(sprintf('Tried to convert an object of type "%s" to an identity array, but it is unknown to the Persistence Manager.', get_class($object)), 1302628242);
        }
        return ['__identity' => $identifier];
    }
public function convertObjectToIdentityArray ( $ object ) { $ identifier = $ this -> getIdentifierByObject ( $ object ) ; if ( $ identifier === null ) { throw new Exception \ UnknownObjectException ( sprintf ( 'Tried to convert an object of type "%s" to an identity array, but it is unknown to the Persistence Manager.' , get_class ( $ object ) ) , 1302628242 ) ; } return [ '__identity' => $ identifier ] ; }
Converts the given object into an array containing the identity of the domain object.

@param object $object The object to be converted
@return array The identity array in the format array('__identity' => '...')
@throws Exception\UnknownObjectException if the given object is not known to the Persistence Manager
Converts the given object into an array containing the identity of the domain object .