/**
  * merge definition values into config record
  *
  * @param Tinebase_Model_Config   $configFromDb
  * @param array                   $definition
  * @return Tinebase_Model_Config
  */
 protected function _mergeDefinition($configFromDb, $definition)
 {
     foreach ($definition as $key => $value) {
         if ($configFromDb->has($key)) {
             $configFromDb->{$key} = $value;
         }
     }
     return $configFromDb;
 }