Commit e2ff98ab by Carsten Brandt

fixed broken sphinx AR::attributes() declaration

Model::attributes() has been made static
parent 8be4f377
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment