| @@ 40-47 (lines=8) @@ | ||
| 37 | /** |
|
| 38 | * {@inheritdoc} |
|
| 39 | */ |
|
| 40 | public function aggregate(array $pipeline, array $options = []) |
|
| 41 | { |
|
| 42 | $query = $this->prepareQuery(__FUNCTION__, null, $pipeline, $options); |
|
| 43 | $result = parent::aggregate($query->getData(), $query->getOptions()); |
|
| 44 | $this->notifyQueryExecution($query); |
|
| 45 | ||
| 46 | return $result; |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * {@inheritdoc} |
|
| @@ 52-59 (lines=8) @@ | ||
| 49 | /** |
|
| 50 | * {@inheritdoc} |
|
| 51 | */ |
|
| 52 | public function count($filter = [], array $options = []) |
|
| 53 | { |
|
| 54 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 55 | $result = parent::count($query->getFilters(), $query->getOptions()); |
|
| 56 | $this->notifyQueryExecution($query); |
|
| 57 | ||
| 58 | return $result; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| @@ 64-71 (lines=8) @@ | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| 63 | */ |
|
| 64 | public function find($filter = [], array $options = []) |
|
| 65 | { |
|
| 66 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 67 | $result = parent::find($query->getFilters(), $query->getOptions()); |
|
| 68 | $this->notifyQueryExecution($query); |
|
| 69 | ||
| 70 | return $result; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * {@inheritdoc} |
|
| @@ 76-83 (lines=8) @@ | ||
| 73 | /** |
|
| 74 | * {@inheritdoc} |
|
| 75 | */ |
|
| 76 | public function findOne($filter = [], array $options = []) |
|
| 77 | { |
|
| 78 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 79 | $result = parent::findOne($query->getFilters(), $query->getOptions()); |
|
| 80 | $this->notifyQueryExecution($query); |
|
| 81 | ||
| 82 | return $result; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| @@ 88-95 (lines=8) @@ | ||
| 85 | /** |
|
| 86 | * {@inheritdoc} |
|
| 87 | */ |
|
| 88 | public function findOneAndUpdate($filter, $update, array $options = []) |
|
| 89 | { |
|
| 90 | $query = $this->prepareQuery(__FUNCTION__, $filter, $update, $options); |
|
| 91 | $result = parent::findOneAndUpdate($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 92 | $this->notifyQueryExecution($query); |
|
| 93 | ||
| 94 | return $result; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|
| @@ 100-107 (lines=8) @@ | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|
| 99 | */ |
|
| 100 | public function findOneAndDelete($filter, array $options = []) |
|
| 101 | { |
|
| 102 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 103 | $result = parent::findOneAndDelete($query->getFilters(), $query->getOptions()); |
|
| 104 | $this->notifyQueryExecution($query); |
|
| 105 | ||
| 106 | return $result; |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|
| @@ 112-119 (lines=8) @@ | ||
| 109 | /** |
|
| 110 | * {@inheritdoc} |
|
| 111 | */ |
|
| 112 | public function deleteMany($filter, array $options = []) |
|
| 113 | { |
|
| 114 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 115 | $result = parent::deleteMany($query->getFilters(), $query->getOptions()); |
|
| 116 | $this->notifyQueryExecution($query); |
|
| 117 | ||
| 118 | return $result; |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| @@ 124-131 (lines=8) @@ | ||
| 121 | /** |
|
| 122 | * {@inheritdoc} |
|
| 123 | */ |
|
| 124 | public function deleteOne($filter, array $options = []) |
|
| 125 | { |
|
| 126 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 127 | $result = parent::deleteOne($query->getFilters(), $query->getOptions()); |
|
| 128 | $this->notifyQueryExecution($query); |
|
| 129 | ||
| 130 | return $result; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| @@ 136-143 (lines=8) @@ | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| 135 | */ |
|
| 136 | public function replaceOne($filter, $replacement, array $options = []) |
|
| 137 | { |
|
| 138 | $query = $this->prepareQuery(__FUNCTION__, $filter, $replacement, $options); |
|
| 139 | $result = parent::replaceOne($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 140 | $this->notifyQueryExecution($query); |
|
| 141 | ||
| 142 | return $result; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * {@inheritdoc} |
|
| @@ 148-155 (lines=8) @@ | ||
| 145 | /** |
|
| 146 | * {@inheritdoc} |
|
| 147 | */ |
|
| 148 | public function insertOne($document, array $options = []) |
|
| 149 | { |
|
| 150 | $query = $this->prepareQuery(__FUNCTION__, [], $document, $options); |
|
| 151 | $result = parent::insertOne($query->getData(), $query->getOptions()); |
|
| 152 | $this->notifyQueryExecution($query); |
|
| 153 | ||
| 154 | return $result; |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * {@inheritdoc} |
|
| @@ 160-167 (lines=8) @@ | ||
| 157 | /** |
|
| 158 | * {@inheritdoc} |
|
| 159 | */ |
|
| 160 | public function updateOne($filter, $update, array $options = []) |
|
| 161 | { |
|
| 162 | $query = $this->prepareQuery(__FUNCTION__, $filter, $update, $options); |
|
| 163 | $result = parent::updateOne($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 164 | $this->notifyQueryExecution($query); |
|
| 165 | ||
| 166 | return $result; |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * {@inheritdoc} |
|
| @@ 172-179 (lines=8) @@ | ||
| 169 | /** |
|
| 170 | * {@inheritdoc} |
|
| 171 | */ |
|
| 172 | public function distinct($fieldName, $filter = [], array $options = []) |
|
| 173 | { |
|
| 174 | $query = $this->prepareQuery(__FUNCTION__, $filter, ['fieldName' => $fieldName], $options); |
|
| 175 | $result = parent::distinct($fieldName, $query->getFilters(), $query->getOptions()); |
|
| 176 | $this->notifyQueryExecution($query); |
|
| 177 | ||
| 178 | return $result; |
|
| 179 | } |
|
| 180 | ||
| 181 | /** |
|
| 182 | * @param string $method |
|