@@ -29,11 +29,17 @@ discard block |
||
| 29 | 29 | return $plugin; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $space |
|
| 34 | + */ |
|
| 32 | 35 | public function create($space, $data) |
| 33 | 36 | { |
| 34 | 37 | return $this->getRepository($space)->create($data)->save(); |
| 35 | 38 | } |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $space |
|
| 42 | + */ |
|
| 37 | 43 | public function findOne($space, $params = []) |
| 38 | 44 | { |
| 39 | 45 | return $this->getRepository($space)->findOne($params); |
@@ -44,6 +50,9 @@ discard block |
||
| 44 | 50 | return $this->getRepository($space)->findOrCreate($params)->save(); |
| 45 | 51 | } |
| 46 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $space |
|
| 55 | + */ |
|
| 47 | 56 | public function find($space, $params = []) |
| 48 | 57 | { |
| 49 | 58 | return $this->getRepository($space)->find($params); |