Idiorm - Fatal error: Class 'Controller\ORM' not found
<p>I am using <a href="https://github.com/j4mie/idiorm" rel="nofollow">Idiorm</a> and looking to update a row with the column name 'path' in </p>

<pre><code>$image = ORM::for_table('shop_product_images')-&gt;find_one($productId);
$image-&gt;path = '/img/shop/products/'.$name;
$image-&gt;save();
</code></pre>

<p>However when this is ran, the response error is:</p>

<pre><code>Fatal error: Class 'Controller\ORM' not found
</code></pre>

<p>Which points to the top line of the query.</p>

<p>I should note that a create query works correctly:</p>

<pre><code>$image = \ORM::for_table('shop_product_images')-&gt;create();
$image-&gt;productId = $productId;
$image-&gt;path = '/img/shop/products/'.$name;
$image-&gt;save();
</code></pre>