/** * Get table config * @return Config */ public function getConfig() { if (empty($this->config)) { $cacheKey = get_class($this) . "-" . $this->table . "-" . $this->rowClass; $cache = Environment::getCache("Ormion"); if (isset($cache[$cacheKey])) { $this->config = $cache[$cacheKey]; } else { $tableInfo = $this->getDb()->getDatabaseInfo()->getTable($this->table); $this->config = Config::fromTableInfo($tableInfo); $cache[$cacheKey] = $this->config; } } return $this->config; }