ErrorException [ Warning ]: Declaration of Model_Product_Item::create($values) should be compatible with Kohana_ORM::create(?Validation $validation = NULL)

MODPATH/admin/classes/Model/Product/Item.php [ 134 ]

129                 $product_image->save();
130             }
131         }
132     }
133 
134     public function create($values) {
135         $values['created'] = date('Y-m-d H:i:s');
136         $this->values($values);
137         $item = parent::create();
138         if ($item->loaded()) {
139             $this->upload_image($values);
  1. SYSPATH/classes/Kohana/Core.php [ 511 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Core.php [ 511 ] » require()

  3. {PHP internal call} » Kohana_Core::auto_load(arguments)

  4. MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » spl_autoload_call(arguments)

  5. APPPATH/views/product/category/viewlv2.php [ 7 ] » Kohana_ORM::factory(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  9. APPPATH/views/template/index.php [ 29 ] » Kohana_View->__toString()

  10. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  11. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  12. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  13. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  14. {PHP internal call} » Kohana_Controller->execute()

  15. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  16. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  17. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  18. DOCROOT/index.php [ 115 ] » Kohana_Request->execute()

Environment