Replies: 2 comments 15 replies
-
What version of PocketBase are you using? PocketBase v0.9.1 comes with several fixes, some of which related to the record deletion. You could also start the executable with |
Beta Was this translation helpful? Give feedback.
11 replies
-
I don't really understand what "required relation reference" means but
here's how my collections are related
There's a 'users' collection, users can ask a question which gets stored in
the 'questions' collection and they can get replies on their questions
which gets stored in a 'replies' collection
A reply has a one to one relation to a question, which has a one-to-one
relation to a user.
I wanted to delete a user, but I couldn't
Although I just tried reversing the operation, I first deleted the replies,
then the question and finally the user and It all worked
I don't know what I'm doing wrong with my collection structure. I also set
Cascade to false on all the relation fields in 'questions' and 'replies'
collection
…On Fri, Feb 10, 2023 at 12:48 PM Gani Georgiev ***@***.***> wrote:
@Jeffreyon <https://github.com/Jeffreyon> What exactly is the returned
error? Could you elaborate a little more on your collections structure? If
the error is the same as the above, could you confirm that your records
don't have a required relation reference anywhere?
—
Reply to this email directly, view it on GitHub
<#1220 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOLFLSLNZAIAQ6LSKXX45HDWWYTITANCNFSM6AAAAAASZPXZUY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the following error message when I'm trying to delete the record.
Failed to delete record. Make sure that the record is not part of a required relation reference.
I understand the reason why is showing the message but it is not clear which of the fields are blocking the deletion. All the relational fields in this table have the option
Delete record on relation delete
set toFalse
.There are not other tables that have references to this one.
Beta Was this translation helpful? Give feedback.
All reactions