protected function attachCacheModels()
{
foreach ($this->_manager->getMappedStatements() as $mappedStatement) {
if (strlen($model = $mappedStatement->getStatement()->getCacheModel()) > 0) {
$cache = $this->_manager->getCacheModel($model);
$mappedStatement->getStatement()->setCache($cache);
}
}
}