rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Column not found #104

Closed mbouclas closed 8 years ago

mbouclas commented 8 years ago

On ->tag() i get the following. The tables in the DB do not have a tag_type column.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tag_type' in 'where clause' (SQL: select count(*) as aggregate from `tagging_tagged` where `tagging_tagged`.`taggable_id` = 48 and `tagging_tagged`.`taggable_id` is not null and `tagging_tagged`.`taggable_type` = App\Models\Page and `tag_slug` = a-tag and `tag_type` = 0 limit 1)