05-22-2016, 11:01 PM
Ok. There is a team of people working on this. We realized that both the get and findById methods (by design) only run the query, but do not return results on their own. To use my method above, you'll have to make one change to the db class. I'll push this out on an update (and probably fix your join issue too. In classes/db.php you have to add the ->first() to the end of this line. That will fix your problem.
A new and improved get function is coming. I'll document that too.
Code:
public function findById($id,$table){
Code:
return $this->action('SELECT *',$table,array('id','=',$id))->first();
Code:
}
A new and improved get function is coming. I'll document that too.