I need to fix the effect of an error that left empty a relationship field that should have been autofilled.

To fix this I need to find all pods item that has the relationship not set, but I don't know how to do it.

I tried with 'where' => 'source.id = ""' in a find() but with no luck.

Any idea?


What you want is:

source.id IS NULL

This will match items that have no source set at all.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.