getConfig()->toArray()['itemName'] . ' cause it contains ' . implode(', ', $foreignKeyLocks) . '. Please remove the connection first.'; } protected function _getForeignKeyLockItemName($tableAlias) { $itemName = null; if (!empty($this->_tableModulesConversion[$tableAlias])) { /** @var string $className */ $className = $this->_tableModulesConversion[$tableAlias]; if (class_exists($className)) { /** @var \Qs_Db_Obj $itemObj */ $itemObj = new $className(); $itemName = $itemObj->getConfig('itemsName'); } } if (!$itemName) { $itemName = $tableAlias . '(s)'; } return $itemName; } }