FIX: Index Respository

This commit is contained in:
Juan Pablo Vial
2025-01-07 21:44:23 -03:00
parent 4d85b39cab
commit e2d670a38c

View File

@ -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