Seeing as Codeigniter is built on a structure similar to Rails and the fuel active records implementation is similar to that of Rails, wouldn't it be useful to have the find_one() function accept the first parameter as string as well to look up by ID?
I'm kind of new to Rails myself but from what I remember the find_one function accepts string or integer values which run a find by primary function. Both find_one_by_id and find_one(array('id'=>$key)) seem a bit tedious.
Comments