New issue
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
When i call $model->addToIndex(); #176
Comments
Seems like you're calling |
I have same error, in the docs say its possible...
|
Extend ElasticquentCollection or add "use ElasticquentCollectionTrait;" to your Eloquent models |
Hi use Illuminate\Database\Eloquent\Model; class wear extends Model BadMethodCallException : Method Elasticquent\ElasticquentCollection::addAllToIndex does not exist. |
@Olegars, your code doesn't match the error. Your sample shows "ElasticquentTrait", but the error shows "ElasticquentCollection". Regardless, note that ElasticquentCollectionTrait has "addToIndex()", while ElasticquentTrait has "addAllToIndex()". |
BadMethodCallException
Method Illuminate\Database\Eloquent\Collection::addToIndex does not exist.
The text was updated successfully, but these errors were encountered: