FIX: casos en que PDO::execute retorna falso, pero sin tirar PDOException

DateTime con parametro pasado DateTime
Model::jsonComplement
This commit is contained in:
Juan Pablo Vial
2025-03-04 11:53:14 -03:00
parent e4e952e842
commit 5054d8f19b
3 changed files with 22 additions and 3 deletions

View File

@ -26,7 +26,13 @@ abstract class Model implements Define\Model
public function jsonSerialize(): mixed
{
return [
'id' => $this->id
'id' => $this->id,
...$this->jsonComplement()
];
}
protected function jsonComplement(): array
{
return [];
}
}