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 caec40e commit 0933309Copy full SHA for 0933309
src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
@@ -682,7 +682,7 @@ public function joiningTableSegment()
682
*/
683
public function touches($relation)
684
{
685
- return in_array($relation, $this->touches);
+ return in_array($relation, $this->getTouchedRelations());
686
}
687
688
/**
@@ -692,7 +692,7 @@ public function touches($relation)
692
693
public function touchOwners()
694
695
- foreach ($this->touches as $relation) {
+ foreach ($this->getTouchedRelations() as $relation) {
696
$this->$relation()->touch();
697
698
if ($this->$relation instanceof self) {
0 commit comments