bgultekin / laravel4-datatables-package

Server-side handler of DataTables Jquery Plugin for Laravel 4
267 stars 108 forks source link

[BUG] Calls the plural of the model instead of the singular as per Larav... #28

Closed ChrisReid closed 11 years ago

ChrisReid commented 11 years ago

...el conventions

subdesign commented 11 years ago

After updating composer with the last two fix (#27, #28) I have the following error:

[2013-08-13 10:32:45] log.ERROR: exception 'BadMethodCallException' with message 'Call to undefined method Illuminate\Database\Query\Builder::getQuery()' in /var/www/project.dev/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1584

To be honest, this error comes in two of my tables, but works on one. Was working in all my code before these fixes.

EDIT: using fluent.. the working one is using Eloquent. So probably the problem is with Fluent queries.