tareq1988 / wp-eloquent

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

Add query method to the Database connection class #53

Closed polevaultweb closed 5 years ago

polevaultweb commented 5 years ago

To return \Illuminate\Database\Query\Builder object.

Resolves https://github.com/tareq1988/wp-eloquent/issues/52

roskno commented 5 years ago

Hi,

Models aren't working either. These changes also fix this:

PHP Fatal error: Uncaught Error: Call to undefined method WeDevs\ORM\Eloquent\Database::query() in /Applications/MAMP/htdocs/woosync/wp-content/plugins/atum-export-pro/vendor/illuminate/database/Eloquent/Model.php:1047

polevaultweb commented 5 years ago

@roskno i think the table method changes are outside of the scope of this fix

rahilwazir commented 5 years ago

@tareq1988 Please merge this.

cguagenti commented 5 years ago

@tareq1988 Any luck to have this PR merged, please? Thanks for your fantastic work!

cguagenti commented 5 years ago

@tareq1988 You are a HERO! Thank you 👐