Browse Source

fixed broken sphinx AR::attributes() declaration

Model::attributes() has been made static
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
e2ff98ab53
  1. 4
      extensions/sphinx/ActiveRecord.php

4
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);
}
/**

Loading…
Cancel
Save