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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...