protected function findOneByKeyFromCache($key, $value)
    {
        if ($key === '') {
            throw new \InvalidArgumentException('$key must not be empty.', 1416847364);
        }
        if (!isset($this->cacheByKey[$key])) {
            throw new \InvalidArgumentException('"' . $key . '" is not a valid key for this mapper.', 1331319882);
        }
        if ($value === '') {
            throw new \InvalidArgumentException('$value must not be empty.', 1331319892);
        }

        if (!isset($this->cacheByKey[$key][$value])) {
            throw new \Tx_Oelib_Exception_NotFound();
        }

        return $this->cacheByKey[$key][$value];
    }
protected function findOneByKeyFromCache($key, $value)
    {
        if ($key === '') {
            throw new \InvalidArgumentException('$key must not be empty.', 1416847364);
        }
        if (!isset($this->cacheByKey[$key])) {
            throw new \InvalidArgumentException('"' . $key . '" is not a valid key for this mapper.', 1331319882);
        }
        if ($value === '') {
            throw new \InvalidArgumentException('$value must not be empty.', 1331319892);
        }

        if (!isset($this->cacheByKey[$key][$value])) {
            throw new \Tx_Oelib_Exception_NotFound();
        }

        return $this->cacheByKey[$key][$value];
    }
protected function findOneByKeyFromCache ( $ key , $ value ) { if ( $ key === '' ) { throw new \ InvalidArgumentException ( '$key must not be empty.' , 1416847364 ) ; } if ( ! isset ( $ this -> cacheByKey [ $ key ] ) ) { throw new \ InvalidArgumentException ( '"' . $ key . '" is not a valid key for this mapper.' , 1331319882 ) ; } if ( $ value === '' ) { throw new \ InvalidArgumentException ( '$value must not be empty.' , 1331319892 ) ; } if ( ! isset ( $ this -> cacheByKey [ $ key ] [ $ value ] ) ) { throw new \ Tx_Oelib_Exception_NotFound ( ) ; } return $ this -> cacheByKey [ $ key ] [ $ value ] ; }
Looks up a model in the cache by key.

When this function reports "no match", the model could still exist in the
database, though.

@param string $key an existing key, must not be empty
@param string $value
the value for the key of the model to find, must not be empty

@throws \InvalidArgumentException
@throws \Tx_Oelib_Exception_NotFound if there is no match in the cache yet

@return \Tx_Oelib_Model the cached model
Looks up a model in the cache by key .