When i try to delete a document that has relationships (without anythin actually related to the document, just has the attribute) I get a Server 500 error.
Appwrite log:
[Error] Method: DELETE
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
[Error] Type: Error
[Error] Message: Call to a member function getId() on null
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 3834```
If I add a relationship then it will let me delete, should be able to delete without relationship too
v1.4.2
Does this happen on 1.4.5 too?
I haven't tried it, found it was only doing it on 1x1 relations, none with many
so i got rid of my 1x1 relationships
Interesting...it might be good to create an issue for this...
I swear we tested this before, but maybe there was a regression...
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Appwrite exception: user_unauthorized, t...
After refreshing the app it is working perfectly