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
- Cannot Update Empty oneToMany Relationsh...
Appwrite's `updateDocument()` API cannot update an empty oneToMany relationship array. When attempting to update an empty relationship with a single-item array,...
- total parameter not working correctly in...
Hello Appwrite team, I'm experiencing issues with the total parameter in the listRows() method (TablesDB) across multiple SDKs. **Issue 1**: Node.js SDK (node...
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...