From 495bcb8f172ab888151121977fb8f109ce68ba48 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 24 Apr 2021 22:47:31 +0200 Subject: [PATCH] Remove SimplePager::haveToPaginate implementation --- src/Datagrid/SimplePager.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Datagrid/SimplePager.php b/src/Datagrid/SimplePager.php index 8db13ee874..8e8338b788 100644 --- a/src/Datagrid/SimplePager.php +++ b/src/Datagrid/SimplePager.php @@ -34,6 +34,10 @@ class SimplePager extends Pager protected $results; /** + * NEXT_MAJOR: Remove this property. + * + * @deprecated since sonata-project/admin-bundle 3.x + * * @var bool */ protected $haveToPaginate; @@ -142,11 +146,6 @@ public function getResults($hydrationMode = null) return $this->results; } - public function haveToPaginate() - { - return $this->haveToPaginate || $this->getPage() > 1; - } - /** * {@inheritdoc} *