public function toArray()
 {
     $array = parent::toArray();
     if ($this->debtor && method_exists($this->debtor, "toArray")) {
         $array = array_merge($array, $this->debtor->toArray());
     }
     return $array;
 }
 public function toArray()
 {
     $array = parent::toArray();
     if ($this->getQuantity()) {
         $array = $this->addProduct($array);
     }
     return $array;
 }