lib/db/cortex.php
protected function _hasRefsIn($key, $filter, $options, $ttl = 0) {
		$type = $this->fieldConf[$key]['relType'];
		$fieldConf = $this->fieldConf[$key][$type];
		// one-to-many shortcut
		$rel = $this->getRelFromConf($fieldConf,$key);
		$hasSet = $rel->find($filter, $options, $ttl);
		if (!$hasSet)
			return false;
		$hasSetByRelId = array_unique($hasSet->getAll($fieldConf[1], true));
		return empty($hasSetByRelId) ? false : $hasSetByRelId;
	}
protected function _hasRefsIn($key, $filter, $options, $ttl = 0) {
		$type = $this->fieldConf[$key]['relType'];
		$fieldConf = $this->fieldConf[$key][$type];
		// one-to-many shortcut
		$rel = $this->getRelFromConf($fieldConf,$key);
		$hasSet = $rel->find($filter, $options, $ttl);
		if (!$hasSet)
			return false;
		$hasSetByRelId = array_unique($hasSet->getAll($fieldConf[1], true));
		return empty($hasSetByRelId) ? false : $hasSetByRelId;
	}
protected function _hasRefsIn ( $ key , $ filter , $ options , $ ttl = 0 ) { $ type = $ this -> fieldConf [ $ key ] [ 'relType' ] ; $ fieldConf = $ this -> fieldConf [ $ key ] [ $ type ] ; // one-to-many shortcut $ rel = $ this -> getRelFromConf ( $ fieldConf , $ key ) ; $ hasSet = $ rel -> find ( $ filter , $ options , $ ttl ) ; if ( ! $ hasSet ) return false ; $ hasSetByRelId = array_unique ( $ hasSet -> getAll ( $ fieldConf [ 1 ] , true ) ) ; return empty ( $ hasSetByRelId ) ? false : $ hasSetByRelId ; }
return IDs of records that has a linkage to this mapper
@param string $key     relation field
@param array  $filter  condition for foreign records
@param array  $options filter options for foreign records
@param int    $ttl
@return array|false
return IDs of records that has a linkage to this mapper