We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$table->morphs('reviewrateable'); creating two fields in table reviewrateable_type and reviewrateable_id https://github.com/codebyray/laravel-review-rateable/blob/master/database/migrations/create_reviews_table.php.stub#L22
$table->morphs('reviewrateable');
reviewrateable_type
reviewrateable_id
but in rating model use $this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id'); for create relation - is not identical in database table https://github.com/codebyray/laravel-review-rateable/blob/master/src/Models/Rating.php#L35
$this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id');
i have the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'reviewable_type' in 'field list' (SQL: update `reviews` set `customer_service_rating` = , `quality_rating` = , `friendly_rating` = , `price_rating` = , `recommend` = 1, `body` = ..., `approved` = 1, `reviewable_type` = App\\Models\\Contacts\\Contact, `reviewable_id` = 170, `reviews`.`updated_at` = 2022-12-22 13:31:42 where `id` = 6238)"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
$table->morphs('reviewrateable');
creating two fields in tablereviewrateable_type
andreviewrateable_id
https://github.com/codebyray/laravel-review-rateable/blob/master/database/migrations/create_reviews_table.php.stub#L22
but in rating model use
$this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id');
for create relation - is not identical in database tablehttps://github.com/codebyray/laravel-review-rateable/blob/master/src/Models/Rating.php#L35
i have the error:
The text was updated successfully, but these errors were encountered: