From e2ff98ab53eee5d0449e8088c2ca3f9892b4adb8 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 25 Nov 2013 15:34:26 +0100 Subject: [PATCH] fixed broken sphinx AR::attributes() declaration Model::attributes() has been made static --- extensions/sphinx/ActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/sphinx/ActiveRecord.php b/extensions/sphinx/ActiveRecord.php index 2cadc69..0291bdf 100644 --- a/extensions/sphinx/ActiveRecord.php +++ b/extensions/sphinx/ActiveRecord.php @@ -638,9 +638,9 @@ abstract class ActiveRecord extends Model * The default implementation will return all column names of the table associated with this AR class. * @return array list of attribute names. */ - public function attributes() + public static function attributes() { - return array_keys($this->getIndexSchema()->columns); + return array_keys(static::getIndexSchema()->columns); } /**