$pagination = $repository->findPaginatedBySupplierId($id);
$pagination->setMaxPerPage($size);
$pagination->setCurrentPage($request->query->getInt('page', 1));
$this->json(new PaginatedCollection($pagination));
$propertyTypeExtractor::getTypes()
abstract class AbstractAdapter extends \CloudCreativity\LaravelJsonApi\Eloquent\AbstractAdapter
{
public function __construct(CursorStrategy $paging)
{
parent::__construct($this->getModelInstance(), $paging);
}
abstract protected function getModelInstance();
// ...
}
SQL_CALC_FOUND_ROWS
иFOUND_ROWS
https://stackoverflow.com/a/818621/1247234 для MySQL, но сомневаюсь, что доктрина это поддерживает