/**
* Loads a list of keyvalue group configs for the specifies parameters, returns an array of config elements
*
* @return array
*/
public function load()
{
$sql = "SELECT id FROM " . Object\KeyValue\GroupConfig\Dao::TABLE_NAME_GROUPS . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit();
$configsData = $this->db->fetchCol($sql, $this->model->getConditionVariables());
$configData = array();
foreach ($configsData as $config) {
$configData[] = Object\KeyValue\GroupConfig::getById($config);
}
$this->model->setList($configData);
return $configData;
}