php - Idiorm - Fatal error: Class 'Controller\ORM' not found -


i using idiorm , looking update row column name 'path' in

$image = orm::for_table('shop_product_images')->find_one($productid); $image->path = '/img/shop/products/'.$name; $image->save(); 

however when ran, response error is:

fatal error: class 'controller\orm' not found 

which points top line of query.

i should note create query works correctly:

$image = \orm::for_table('shop_product_images')->create(); $image->productid = $productid; $image->path = '/img/shop/products/'.$name; $image->save(); 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -