/**
  * Возвращает селектор для указанной коллекции и набора объектов
  * @param ICollection $objectsCollection
  * @param IObjectSet $objectSet
  * @return ISelector
  */
 protected function getSelectorInstance(ICollection $objectsCollection, IObjectSet $objectSet)
 {
     /**
      * @var ISelector $selector
      */
     $selector = $this->getPrototype($this->selectorClass, ['umi\\orm\\selector\\ISelector'])->createInstance([$objectsCollection, $objectSet, $this]);
     $objectSet->setSelector($selector);
     return $selector;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function resetResult()
 {
     $this->selectBuilder = null;
     $this->objectSet->reset();
     return $this;
 }