Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

What you want is:

source.id IS NULL

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

share|improve this answer
    
Thanks Scott! It works. –  Bakaburg Sep 24 '13 at 15:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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