[RSS Feed/News] Entity relationships do not (always) validate 'primary' flag is accurate and may not hit the entity cache

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
When 'primary' is set on a relationship, XF\Mvc\Entity\Manager::getRelation parses the condition into a key-value set to lookup by primary key the linked entity.

This has the following issues:
  • When this key-value has 1 entry, Finder::find => Finder::whereId do not validate this is a known primary key column (they only do this for an array).
  • For multi-column primary keys, the order is dependant on the list of conditions and not the primary key as defined in the...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom