You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First - Thank you for making a PostgreSql extension for Scout! I was able to resolve the issue, but still reporting it in case it's something in Scout or the driver. If I need to bring this over to Scout, let me know and I can do that.
The following code in my model was causing a PostgreSql error. This code automatically loads my relationships when I pull back a record:
Model Relationships Causing Error
protected $with = [
'category',
'attachments',
];
Here's the error I would get when attempting a Scout Import using the Command Line command:
After commenting out the above code from my model I was able to import successfully:
Success
#> php artisan scout:import "App\Data\Models\HelpCenter\Article"
Imported [App\Data\Models\HelpCenter\Article] models up to ID: 235
All [App\Data\Models\HelpCenter\Article] records have been imported.
The text was updated successfully, but these errors were encountered:
First - Thank you for making a PostgreSql extension for Scout! I was able to resolve the issue, but still reporting it in case it's something in Scout or the driver. If I need to bring this over to Scout, let me know and I can do that.
The following code in my model was causing a PostgreSql error. This code automatically loads my relationships when I pull back a record:
Model Relationships Causing Error
Here's the error I would get when attempting a Scout Import using the Command Line command:
PostgreSql Error
After commenting out the above code from my model I was able to import successfully:
Success
The text was updated successfully, but these errors were encountered: