Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
BSN4 committed Mar 30, 2020
1 parent c1fa72d commit 67811c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
20 changes: 0 additions & 20 deletions src/Relationships/BelongsToCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,9 @@ public function __construct($related, Model $parent, $foreignKey = null, $ownerK
parent::__construct((new $related)->newQuery(), $parent, $foreignKey, $ownerKey, $relationName);
}

public function addConstraints()
{
//call_user_func($this->baseConstraints, $this);
}

public function getResults()
{
return $this->related::where($this->ownerKey,
$this->parent->{$this->foreignKey})->first();
}

public function addEagerConstraints(array $models)
{
// not implemented yet
}

public function initRelation(array $models, $relation)
{
// not implemented yet
}

public function match(array $models, Collection $results, $relation)
{
// not implemented yet
}
}
22 changes: 0 additions & 22 deletions src/Relationships/HasManyCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,9 @@ public function __construct($related, Model $parent, $foreignKey = null, $ownerK
parent::__construct((new $related)->newQuery(), $parent, $foreignKey, $ownerKey);
}

public function addConstraints()
{
//call_user_func($this->baseConstraints, $this);
}

public function getResults()
{
return $this->related::where($this->foreignKey,
$this->parent->{$this->ownerKey});
}

public function addEagerConstraints(array $models)
{
// not implemented yet
}

public function initRelation(array $models, $relation)
{
// not implemented yet
}

public function match(array $models, Collection $results, $relation)
{
// not implemented yet
}


}

0 comments on commit 67811c2

Please sign in to comment.