title: Get linked entities with many-to-many link to themselves?
body: <p>I have something similar to the following situation:</p>
  
  <p><img src="https://i.stack.imgur.com/t0XpG.png" alt=""></p>
  
  <p>The problem is when I added a link from one object to another then I added it once. So if 2 objects are linked then one has <code>directReports == 1</code>, managers = 0 and another <code>directReports == 0</code>, <code>managers == 1</code>.</p>
  
  <p>And if I want to get all the linked objects then I can't write a predicate as <code>(directReports.count &gt; 0) OR (managers.count &gt; 0)</code> (it is forbidden). So I should write it as <code>(ANY directReports != nil) OR (ANY managers != nil)</code>.</p>
  
  <p>So are there better ways to solve this issue. For example I saw that it is possible to create a category over entity but can I use it in a predicate?</p>