public function collection() { Loader::load("model", "DBObjectCollection"); $collection = new DBObjectCollection($this->managed_object(), $this->db(), $this->table(), $this->db_name()); $collection->setFilter($this->get_where_clause_array()); return $collection; }