diff --git a/src/Relationships/BelongsToCached.php b/src/Relationships/BelongsToCached.php index aa2430e..64c9d15 100644 --- a/src/Relationships/BelongsToCached.php +++ b/src/Relationships/BelongsToCached.php @@ -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 - } } diff --git a/src/Relationships/HasManyCached.php b/src/Relationships/HasManyCached.php index 52c70b2..82873e1 100644 --- a/src/Relationships/HasManyCached.php +++ b/src/Relationships/HasManyCached.php @@ -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 - } - - }