- Affected version
- 2.3.0 Beta 6
ViewableInterface
allows to perform viewability checks on arbitrary entities that implement this interface.Depending on the entity, actually calling
canView
requires quite a few relations to performan viewability checks:A
Post
entity for example requires Thread
, Thread.Forum
, Thread.Forum.Node
and Thread.Forum.Node.Permissions
.If those entitites are not already available in the entity cache this causes quite a few additional queries; if multiple arbitrary entities need to be checked this could cause m*n additional queries in worst case.
It would therefore be great if
ViewableInterface
had a method to get the required relations so they can be included in finder with