From cbeaec31e63cde9dcc9a66287f0d24da3b06c2e7 Mon Sep 17 00:00:00 2001 From: Arunas Mazeika Date: Wed, 11 Jan 2017 17:12:15 +0100 Subject: [PATCH] #12 Add searchable behavior --- model/activities.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/model/activities.php b/model/activities.php index 0a1119b..7cb0c9a 100644 --- a/model/activities.php +++ b/model/activities.php @@ -44,6 +44,12 @@ public function __construct(KObjectConfig $config) $state->sort = 'created_on'; } + protected function _initialize(KObjectConfig $config) + { + $config->append(array('behaviors' => array('searchable'))); + parent::_initialize($config); + } + /** * Builds WHERE clause for the query. *