title: PIMCore Call to a member function supportsInheritance() on null
body: <p>Whenever I click on search button to select object from list as shown in image below.</p>
  <p><a href="https://i.stack.imgur.com/sO7Jg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sO7Jg.png" alt="enter image description here" /></a></p>
  <p>I get the error Call to a member function supportsInheritance() on null. It was working  but today its started showing this error. Image showing error is below</p>
  <p><a href="https://i.stack.imgur.com/Uy1CJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uy1CJ.png" alt="enter image description here" /></a></p>
  <p>I already have lists to select by searching and it was working today.
  I have created fields inside bricks and using bricks inside classes.</p>
  <p>Below is the full details of Error.</p>
  <p><a href="https://i.stack.imgur.com/B76Vx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B76Vx.png" alt="enter image description here" /></a></p>
  <p>Any solution will be appreciated. My pimcore version is 6.6.
  Thanks in advance</p>