Example #1
0
 protected function getConfigForProperty($key, $data)
 {
     $config = parent::getConfigForProperty(Epic_Mongo_DocumentSet::DYNAMIC_INDEX, $data);
     $config['parentIsSet'] = $this;
     if (array_key_exists('pathToDocument', $config)) {
         $basePath = substr($config['pathToDocument'], 0, -2);
         $config['pathToDocument'] = $basePath . "." . $key;
     }
     return $config;
 }