persistence) { $persistenceId = $this->getOption(self::OPTION_PERSISTENCE) ?: 'default'; /** @var PersistenceManager $persistenceManager */ $persistenceManager = $this->getServiceLocator()->get(PersistenceManager::SERVICE_ID); $persistence = $persistenceManager->getPersistenceById($persistenceId); if (!$persistence instanceof common_persistence_SqlPersistence) { throw new InconsistencyConfigException( "Configured persistence '$persistenceId' is not sql persistence" ); } $this->persistence = $persistence; } return $this->persistence; } }