Prado\Data\SqlMap\Configuration\TSqlMapXmlConfiguration::attachCacheModels PHP Method

attachCacheModels() protected method

Set the cache for each statement having a cache model property.
protected attachCacheModels ( )
    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);
            }
        }
    }