Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
27 Jun 2012 at 16:10 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonhttp://api.drupal.org/api/drupal/core!modules!entity!lib!Drupal!entity!E...
Looks like a good Novice project to add a line to the documentation with this note.
Comment #2
mjonesdinero commentedAttached is the patch please feedback if there is some changes
Comment #3
jhodgdonThanks for the patch! The grammar needs a little adjustment though -- the first sentence isn't a sentence. Actually, I think it should probably start with "Note that...". I would also leave out the "this is by design" sentence. Just state what the function does.
Comment #4
bxtaylor commentedAgree with @jhodgdon, should read something like: "Note that Entities with empty field values will be excluded from the EntityFieldQuery results when using the fieldOrderBy() method."
Comment #5
jhodgdonI agree with #4, except that the word "entitites" does not need to be capitalized.
Comment #6
chx commentedYou can add the same to fieldCondition too. Thanks!
Comment #7
mjonesdinero commentedupdate the what bxtaylor and jhodgdon decided
Comment #8
jhodgdonThanks!
A few things to fix:
a) The existing paragraph about "If called multiple times" should not be removed. This new text should probably be added as a separate paragraph.
b) See #6.
Comment #9
jhodgdonforgot status
Comment #10
mjonesdinero commentedthanks jhodgdon
update patch now
Comment #11
chx commentedI moved the second to the fieldOrderBy method itself, not sure why it was on entityOrderBy? And changed the method names to simply "this method".
Comment #12
bxtaylor commentedPatch in #11 looks good to me. Thanks, chx!
Comment #13
mjonesdinero commentedthanks for correcting chx
Comment #14
mjonesdinero commentedComment #15
jhodgdonThanks! Committed to 8.x. The class is in a different file in 7.x, so this needs a port.
Comment #16
bxtaylor commentedHere's the patch for D7.
Comment #17
bxtaylor commentedComment #18
jhodgdonThis patch doesn't seem to include as much as the 8.x patch. Is that because one of the methods doesn't exist in 7.x, or because the patch is incorrect?
Comment #19
bxtaylor commentedI'm looking at the two patches side-by-side:
http://drupal.org/files/1662950_11.patch (chx)
http://drupal.org/files/1662950_d7_port_16.patch (mine)
and there only seems to be a one line difference.
Seem the same, otherwise.
Comment #20
chx commentedI copied the hunks (no headers) into two files and ran diff over them. No textual difference.
Comment #21
jhodgdonMy fault, sorry! I'll get that patch committed. Thanks!
Comment #22
jhodgdonCommitted to 7.x. Thanks again everyone!