FIX: Index Respository
This commit is contained in:
@ -76,7 +76,7 @@ abstract class Repository implements Define\Repository
|
|||||||
|
|
||||||
protected function setIndex(Define\Model &$model, mixed $value): Repository
|
protected function setIndex(Define\Model &$model, mixed $value): Repository
|
||||||
{
|
{
|
||||||
$model->id = $value;
|
$model->{$this->getKey()} = $value;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
protected function getIndex(Define\Model $model): mixed
|
protected function getIndex(Define\Model $model): mixed
|
||||||
|
Reference in New Issue
Block a user