tareq1988 / wp-eloquent

Eloquent ORM for WordPress
https://tareq.co/2015/05/eloquent-orm-in-wordpress/
566 stars 135 forks source link

Code style changes and fix join clauses not auto prefixing table names #67

Closed ryangjchandler closed 2 years ago

ryangjchandler commented 5 years ago

After using this package inside of a WordPress plugin, I ran into an issue where the various join() methods did not auto prefix the table names.

I've added a new method to the Database class that will automatically prefix the table name, and replaced all usages of the $db property to use this new method instead. It is public so that it can be accessed inside of the Builder class, and Model classes.