library/Criteria/Isolated/DocumentStore.php
public function has(MongoCollection $dataGateway, $id)
    {
        $id = (string) $id;

        if (!$this->splObjectStorage->contains($dataGateway)) {
            return false;
        }

        if (isset($this->splObjectStorage[$dataGateway][$id])) {
            return true;
        }

        return false;
    }
public function has(MongoCollection $dataGateway, $id)
    {
        $id = (string) $id;

        if (!$this->splObjectStorage->contains($dataGateway)) {
            return false;
        }

        if (isset($this->splObjectStorage[$dataGateway][$id])) {
            return true;
        }

        return false;
    }
public function has ( MongoCollection $ dataGateway , $ id ) { $ id = ( string ) $ id ; if ( ! $ this -> splObjectStorage -> contains ( $ dataGateway ) ) { return false ; } if ( isset ( $ this -> splObjectStorage [ $ dataGateway ] [ $ id ] ) ) { return true ; } return false ; }
Check whether the given data gateway exists in the current store

@param MongoCollection $dataGateway
@param $id
@return bool
Check whether the given data gateway exists in the current store