lib/db/cortex.php
protected function getRelFromConf(&$relConf, $key) {
		if (!is_array($relConf))
			$relConf = array($relConf, '_id');
		$rel = $this->getRelInstance($relConf[0],null,$key,true);
		if($this->dbsType=='sql' && $relConf[1] == '_id')
			$relConf[1] = $rel->primary;
		return $rel;
	}
protected function getRelFromConf(&$relConf, $key) {
		if (!is_array($relConf))
			$relConf = array($relConf, '_id');
		$rel = $this->getRelInstance($relConf[0],null,$key,true);
		if($this->dbsType=='sql' && $relConf[1] == '_id')
			$relConf[1] = $rel->primary;
		return $rel;
	}
protected function getRelFromConf ( & $ relConf , $ key ) { if ( ! is_array ( $ relConf ) ) $ relConf = array ( $ relConf , '_id' ) ; $ rel = $ this -> getRelInstance ( $ relConf [ 0 ] , null , $ key , true ) ; if ( $ this -> dbsType == 'sql' && $ relConf [ 1 ] == '_id' ) $ relConf [ 1 ] = $ rel -> primary ; return $ rel ; }
get relation model from config
@param $relConf
@param $key
@return Cortex
get relation model from config