dimanche 26 novembre 2017

Unknown column 'categories.id' in 'on clause' Error after change categories id?

I changed categories "id" as category_id. I am using phpstorm, so renamed with refactor. Meanwhile all "id"s turn "category_id". But this time it gives me that error and I dont know What I need to do ?

Full Error;

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories.id' in 'on clause' (SQL: select categories.*, category_post.post_id as pivot_post_id, category_post.category_id as pivot_category_id from categories inner join category_post on categories.id = category_post.category_id where category_post.post_id is null) (View: /home/username/www/haber/resources/views/frontend/home.blade.php)

Any advice ?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hThgpV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire