This commit is contained in:
lexx committed 2023-10-04 13:32:30 +03:00
1 parent 215d238505
commit 1ca5f4e521
82 files changed
+519 -1889

No files matched your search

+2 -7
View File
@@ -3,9 +3,7 @@
namespace Lucent\Record;
use Illuminate\Contracts\Session\Session;
use Lucent\Primitive\Collection;
use Lucent\Query\Query;
use Lucent\Schema\Schema;
class Manager
{
@@ -79,19 +77,16 @@ class Manager
}, []);
}
/**
* @param Collection<Schema> $schemas
*/
public function getRecords(?string $ignoreId = null): array
{
$queryResult = $this->query
$graph = $this->query
->filter(["id_in" => $this->getIdsExcept($ignoreId)])
->limit(7)
->run();
$graph = $queryResult->getQueryRecords();
return $this->order($graph->records->toArray());
}