Find_one suggestion

edited September 2011 in Feature Requests
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

  • edited 3:27AM
    There is a find_by_key() method that allows you to do that.
Sign In or Register to comment.