lib/db/cortex.php
function exists($key, $relField = false) {
		if (!$this->dry() && $key == '_id') return true;
		return $this->mapper->exists($key) ||
			($relField && isset($this->fieldConf[$key]['relType']));
	}
function exists($key, $relField = false) {
		if (!$this->dry() && $key == '_id') return true;
		return $this->mapper->exists($key) ||
			($relField && isset($this->fieldConf[$key]['relType']));
	}
function exists ( $ key , $ relField = false ) { if ( ! $ this -> dry ( ) && $ key == '_id' ) return true ; return $ this -> mapper -> exists ( $ key ) || ( $ relField && isset ( $ this -> fieldConf [ $ key ] [ 'relType' ] ) ) ; }
check if a certain field exists in the mapper or
or is a virtual relation field
@param string $key
@param bool $relField
@return bool
check if a certain field exists in the mapper or or is a virtual relation field