elgg-gitbot / test2

0 stars 0 forks source link

$entity->getEntityFromRelationship (Return single entity) (Trac #4416) #33

Open elgg-gitbot opened 11 years ago

elgg-gitbot commented 11 years ago

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.

elgg-gitbot commented 11 years ago

Title changed from $entity->getEntityFromRelationship to $entity->getEntityFromRelationship (Return single entity) by brettp on 2012-04-10

elgg-gitbot commented 11 years ago

Milestone changed to Elgg 1.9.0 by ewinslow on 2012-05-12