This is a proposed convenience function for cases where there it is known beforehand that there will only be one entity in the given result. This would help for example when we're implementing some kind of tree structure as in pages or threaded comments -- provides an easy way to just get the parent.
Original ticket http://trac.elgg.org/ticket/4416 on 2012-03-24 by ewinslow, assigned to unknown.
Elgg version: 1.8
This is a proposed convenience function for cases where there it is known beforehand that there will only be one entity in the given result. This would help for example when we're implementing some kind of tree structure as in pages or threaded comments -- provides an easy way to just get the parent.