From dff8596fd3c29a54da40e693a2ee5a48427f76cc Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 13 Apr 2023 12:28:00 +0530 Subject: [PATCH] Update cell example. Use the property defined for the cell. --- en/views/cells.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/en/views/cells.rst b/en/views/cells.rst index fb59997952..20ed05e3fa 100644 --- a/en/views/cells.rst +++ b/en/views/cells.rst @@ -263,7 +263,9 @@ creating a cell object:: public function display($userId) { - $result = $this->fetchTable('Users')->find('friends', ['for' => $userId])->all(); + $result = $this->fetchTable('Users')->find('friends', ['for' => $userId]) + ->limit($this->limit) + ->all(); $this->set('favorites', $result); } }