Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
find_one_by(...)->where(...) not working
  • Hi, How can I return one result? I tried MyCrudModel::find_one_by(...)->where(...) and it didn't work: ErrorException [ Error ]: Call to undefined method Model_Count::where() I just want to return one row. Thanks.
  • I am always using ORM and I never use this class but your post made me to take a look on Model_Crud class. First of all I didn't see method 'where' in Model_Crud class. Keep in mind that method find_one_by returns either null or a new model object.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion