We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89667a5 commit a78d7baCopy full SHA for a78d7ba
src/Jenssegers/Mongodb/Relations/EmbedsOne.php
@@ -8,9 +8,7 @@
8
9
class EmbedsOne extends EmbedsOneOrMany
10
{
11
- /**
12
- * @inheritdoc
13
- */
+
14
public function initRelation(array $models, $relation)
15
16
foreach ($models as $model) {
@@ -20,17 +18,11 @@ public function initRelation(array $models, $relation)
20
18
return $models;
21
19
}
22
23
24
25
26
public function getResults()
27
28
return $this->toModel($this->getEmbedded());
29
30
31
32
33
34
public function getEager()
35
36
$eager = $this->get();
0 commit comments