Welcome Guest, Not a member yet? Register   Sign In
Query result as an indexed array or object by index of choice
#2

I'd love to see such feature.

I think that:
  1. By default $primaryKey should be used
  2. Instead of getResultKey() replacing findAll() we should get a modifier (similar to the asArray())

Consider this:
PHP Code:
$model->indexed()->findAll() 
PHP Code:
$model->indexed('id')->findAll() 
Reply


Messages In This Thread
RE: Query result as an indexed array or object by index of choice - by rmilecki - 11-14-2020, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB