Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function add($documents)
 {
     parent::add($documents);
     if ($rap = $this->getRootAndPath()) {
         foreach ($this->getAdd() as $key => $document) {
             $document->setRootAndPath($rap['root'], $rap['path'] . '._add' . $key);
         }
     }
 }