ThingEngineer / PHP-MySQLi-Database-Class

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

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

Open pietropietro opened 2 years ago

pietropietro commented 2 years 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