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.