title: Why am I getting "TableRegistry not found" in CakePhP 3.0?
body: <p>I have a class full of static functions that I call UtilityFunctions in my Model/ directory.  But that class cannot access TableRegistry::Get even though the "use" statements are in place.  Below is the code and the error.</p>
  
  <pre><code>namespace App\Model\Table;
  use Cake\ORM\TableRegistry;
  use App\Model\Entity\Device;
  
  class UtilityFunctions {
      public static function getDevice($deviceInfo) {
          $devicesTable = TableRegistry::get('Devices'); // TableRegistry not found
          $query = $devicesTable-&gt;findByDeviceInfo($deviceInfo);
         ...
      }
  }
  </code></pre>
  
  <p>"Class \u0027UtilityFunctions\TableRegistry\u0027 not found",
  "/var/www/myserver/src/Model/Custom/UtilityFunctions.php",115</p>