FIX: Repository UF
This commit is contained in:
@ -2,8 +2,10 @@
|
|||||||
namespace Incoviba\Repository;
|
namespace Incoviba\Repository;
|
||||||
|
|
||||||
use DateTimeInterface;
|
use DateTimeInterface;
|
||||||
|
use DateTimeImmutable;
|
||||||
use Incoviba\Common\Define;
|
use Incoviba\Common\Define;
|
||||||
use Incoviba\Common\Ideal;
|
use Incoviba\Common\Ideal;
|
||||||
|
use Incoviba\Common\Ideal\Repository;
|
||||||
use Incoviba\Common\Implement;
|
use Incoviba\Common\Implement;
|
||||||
use Incoviba\Model;
|
use Incoviba\Model;
|
||||||
|
|
||||||
@ -13,6 +15,19 @@ class UF extends Ideal\Repository
|
|||||||
{
|
{
|
||||||
return 'uf';
|
return 'uf';
|
||||||
}
|
}
|
||||||
|
protected function getIndex(Define\Model $model): string
|
||||||
|
{
|
||||||
|
return 'fecha';
|
||||||
|
}
|
||||||
|
protected function setIndex(Define\Model &$model, mixed $value): Repository
|
||||||
|
{
|
||||||
|
$model->fecha = new DateTimeImmutable($value);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
protected function getKey(): string
|
||||||
|
{
|
||||||
|
return 'fecha';
|
||||||
|
}
|
||||||
|
|
||||||
public function create(?array $data = null): Model\UF
|
public function create(?array $data = null): Model\UF
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user