public function getReferencingTable($table, $column, $active = NULL)
{
if (strpos($table, '.') !== FALSE) {
list($table, $column) = explode('.', $table);
} elseif (!$column) {
$hasMany = $this->conventions->getHasManyReference($this->name, $table);
if (!$hasMany) {
return FALSE;
}
list($table, $column) = $hasMany;
}
$prototype =& $this->refCache['referencingPrototype'][$this->getSpecificCacheKey()]["{$table}.{$column}"];
if (!$prototype) {
$prototype = $this->createGroupedSelectionInstance($table, $column);
$prototype->where("{$table}.{$column}", array_keys((array) $this->rows));
}
$clone = clone $prototype;
$clone->setActive($active);
return $clone;
}