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); } }