-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
odm:schema:drop command does not drop search indexes #2684
Comments
Testing this with this document class, I reproduce the error. I'm not able to get the stack trace of the error using namespace App\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations\{Document, Field, Id, SearchIndex};
use MongoDB\BSON\ObjectId;
#[Document, SearchIndex(dynamic: true)]
class Article
{
#[Id] public ObjectId $id;
#[Field] public string $title;
} I noted an other similar issue when none of
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Summary
odm:schema:drop does not drop search indexes.
Current behavior
After running odm:schema:create while having mapped document with search index defined & mapped, odm:schema:drop does not drop search index. While trying to drop it it outputs error: Cannot use object of type stdClass as array.
It succesfuly drops normal indexes, collections and databases after that.
How to reproduce
Expected behavior
Search index should be succesfully dropped.
The text was updated successfully, but these errors were encountered: