do not use app container in classes
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
bence committed 2023-04-19 23:26:24 +02:00
1 parent 0f87a9c6e3
commit 4fe463fcc5
9 files changed
+68 -31

No files matched your search

@@ -0,0 +1,20 @@
<?php namespace SokoWeb\Interfaces\PersistentData;
use Generator;
use SokoWeb\Database\Query\Select;
use SokoWeb\PersistentData\Model\Model;
interface IPersistentDataManager
{
public function selectFromDb(Select $select, string $type, bool $useRelations = false, array $withRelations = []);
public function selectMultipleFromDb(Select $select, string $type, bool $useRelations = false, array $withRelations = []): Generator;
public function selectFromDbById($id, string $type, bool $useRelations = false);
public function loadRelationsFromDb(Model $model, bool $recursive): void;
public function saveToDb(Model $model): void;
public function deleteFromDb(Model $model): void;
}