src/Database/DatabaseCache.php
/**
	 * Checks if the cache has a matching model instance.
	 *
	 * @param string $className The model's full class name.
	 * @param mixed $primaryKeyValue
	 * @return bool
	 */
Checks if the cache has a matching model instance.
@param string $className The model's full class name.
@param mixed $primaryKeyValue
@return bool
Checks if the cache has a matching model instance . @param string $className The model ' s full class name . @param mixed $primaryKeyValue @return bool
public function hasModelInstance($className, $primaryKeyValue) {
		return
			$this->isCachingEnabled() &&
			array_key_exists($className, $this->models) &&
			array_key_exists(serialize($primaryKeyValue), $this->models[$className]);
	}
public function hasModelInstance ( $ className , $ primaryKeyValue ) { return $ this -> isCachingEnabled ( ) && array_key_exists ( $ className , $ this -> models ) && array_key_exists ( serialize ( $ primaryKeyValue ) , $ this -> models [ $ className ] ) ; }
Checks if the cache has a matching model instance.
Checks if the cache has a matching model instance .