Download & Extend

field_attach_query also supports 'NOT IN'

Project:Drupal core
Version:7.x-dev
Component:field system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The PHPdoc fails to mention it, but field_attach_query() also natively supports 'NOT IN' operator (since DBTNG supports it too).
Could be useful for the 'cache field cache' pattern for 'reference' fields.

AttachmentSizeStatusTest resultOperations
field_query_NOT_IN.patch1.02 KBIdlePassed: 11562 passes, 0 fails, 0 exceptionsView details

Comments

#1

Status:active» reviewed & tested by the community

I'm trusting you that it works; the doc change looks fine. :-)

#2

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks!

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.