ThingEngineer / PHP-MySQLi-Database-Class

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

Using with namespaces #980

Open BruTru opened 2 years ago

BruTru commented 2 years ago

Currently, the library does not manage name spaces. For example, my User class is in the ClassesFramework namespace. So, the name of the table in mysql must be classes\framework\user.

I created a DbMyAppObject object which inherits from DbObject and which removes the namespace in $this->dbTable. But this must also be done when using jointures.

Is it possible to have as default behavior the removal of the namespace of the classes for the generation of SQL?