ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.28k stars 1.35k forks source link

missing wrapper method for mysqli fetch_object – which makes it possible to return a custom class instance #994

Open pietropietro opened 1 year ago

pietropietro commented 1 year ago

From what I understand it is only possible to use the objectBuilder to get an StdClass object instead of an array. Is there a way to mimic mysqli method fetch_object("MyCustomClass") and get back an instance of MyCustomClass? Thanks