public function model_call_ansestors(Jam_Model $model, Jam_event_data $data) { $path_ids = $model->path_ids(); if ($path_ids) { $data->return = Jam::all($model)->where($model->meta()->primary_key(), 'IN', $path_ids); } else { $data->return = Jam_Query_Builder_Collection::factory($model)->load_fields(array()); } }