Exemple #1
0
 public function unlink(Product $product)
 {
     $product->sos_prod_id = 0;
     $product->save();
 }
 protected function resetQueue()
 {
     $table = $this->product->getConnection()->table($this->product->getTable());
     $table->update(array('update_queue' => 0));
 }
Exemple #3
0
 /**
  * Eagerloading our extra data
  */
 protected function load(Product $product)
 {
     $product->load(array('supplier', 'supplier.sosMerk'));
 }
 /**
  * @param array $data
  *
  * @return Product
  */
 protected function create(array $data)
 {
     return $this->product->create($data);
 }