Don't try to propagate when there is nothin to propagate
This commit is contained in:
+1
-1
@@ -670,7 +670,7 @@ abstract class Entity
|
||||
if (in_array($relation, $possibleRelations)) {
|
||||
$this->$relation = $this->$relation()->get();
|
||||
}
|
||||
if ($this->$relation) {
|
||||
if ($this->$relation && $propagate) {
|
||||
$this->$relation->with($propagate);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user