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. MODPATH/admin/classes/Model/Product/Item.php [ 5 ] » Kohana_Core::error_handler(arguments)

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

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

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

  5. APPPATH/classes/Controller/Product.php [ 51 ] » Kohana_ORM::factory(arguments)

  6. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Product->action_view()

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

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

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

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

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

Environment