lots
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user