Skip to content

Commit

Permalink
remove unused property (#31244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddzobov authored and taylorotwell committed Jan 27, 2020
1 parent 35f0109 commit dc2b6cc
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@

trait InteractsWithPivotTable
{
/**
* The cached copy of the currently attached pivot models.
*
* @var \Illuminate\Database\Eloquent\Collection
*/
private $currentlyAttached;

/**
* Toggles a model (or models) from the parent.
*
Expand Down Expand Up @@ -479,7 +472,7 @@ protected function detachUsingCustomClass($ids)
*/
protected function getCurrentlyAttachedPivots()
{
return $this->currentlyAttached ?: $this->newPivotQuery()->get()->map(function ($record) {
return $this->newPivotQuery()->get()->map(function ($record) {
$class = $this->using ? $this->using : Pivot::class;

return (new $class)->setRawAttributes((array) $record, true);
Expand Down

0 comments on commit dc2b6cc

Please sign in to comment.