protected function _init()
{
parent::_init();
$config =& $this->_config;
if (!$config['to']) {
$assoc = preg_replace("/\\w+\$/", "", $config['from']) . $config['name'];
$config['to'] = Libraries::locate('models', $assoc);
} elseif (!strpos($config['to'], '\\')) {
$config['to'] = preg_replace("/\\w+\$/", "", $config['from']) . $config['to'];
}
if (!$config['key'] || !is_array($config['key'])) {
$config['key'] = $this->_keys($config['key']);
}
if ($config['strategy']) {
$config = (array) $config['strategy']($this) + $config;
unset($this->_config['strategy']);
}
}