示例#1
0
 /**
  * @param \Molino\SelectQueryInterface $query
  * @return type
  */
 public function findOrder(SelectQueryInterface $query)
 {
     $order = $query->one();
     /*
             $items = [];
             foreach ($order->getItems() as $item) {
                 $items[] = $item;
             }
             $order->setItems($items);
     */
     return $order;
 }
 /**
  * @param \Molino\SelectQueryInterface $query
  * @return \Vespolina\Entity\Taxonomy\TaxonomyNodeInterface
  */
 public function findTaxonomyNodes(SelectQueryInterface $query)
 {
     return $query->all();
 }
示例#3
0
 /**
  * @param \Molino\SelectQueryInterface $query
  * @return \Vespolina\Entity\Invoice\InvoiceInterface
  */
 public function findInvoices(SelectQueryInterface $query)
 {
     return $query->all();
 }
示例#4
0
 /**
  * @param \Molino\SelectQueryInterface $query
  * @return \Vespolina\Entity\Billing\BillingRequestInterface
  */
 public function findBillingRequests(SelectQueryInterface $query)
 {
     return $query->all();
 }
示例#5
0
 /**
  * @param \Molino\SelectQueryInterface $query
  * @return \Vespolina\Entity\Partner\PartnerInterface
  */
 public function findPartners(SelectQueryInterface $query)
 {
     return $query->all();
 }