Hydrahon icon indicating copy to clipboard operation
Hydrahon copied to clipboard

fetch style for select queries

Open eburhan opened this issue 4 years ago • 2 comments

class Person { private $id; private $name; private $age; }

Hi. I want to mapping the columns of the result set to named properties in the class. Example:

$h->table('person') ->select() ->where('name', 'George') ->get(**Person::class**);

Can you add such a feature in future releases?

eburhan avatar Apr 07 '20 13:04 eburhan

Hi there,

very good input, definitely something I want to see in the future of hydrahon!

mario-deluna avatar Sep 20 '20 21:09 mario-deluna

also looking forward to this. would be nice.

leonkramer avatar Oct 04 '20 11:10 leonkramer