@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | return $this->plugins[$class]; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $space |
|
43 | + */ |
|
41 | 44 | public function create($space, $data) |
42 | 45 | { |
43 | 46 | return $this->getRepository($space)->create($data)->save(); |
@@ -48,6 +51,9 @@ discard block |
||
48 | 51 | return $this->getRepository($space)->findOne($params); |
49 | 52 | } |
50 | 53 | |
54 | + /** |
|
55 | + * @param string $space |
|
56 | + */ |
|
51 | 57 | public function findOrCreate($space, $params = []) |
52 | 58 | { |
53 | 59 | return $this->getRepository($space)->findOrCreate($params)->save(); |
@@ -58,6 +64,9 @@ discard block |
||
58 | 64 | return $this->getRepository($space)->findOrFail($params); |
59 | 65 | } |
60 | 66 | |
67 | + /** |
|
68 | + * @param string $space |
|
69 | + */ |
|
61 | 70 | public function find($space, $params = []) |
62 | 71 | { |
63 | 72 | return $this->getRepository($space)->find($params); |