Ejemplo n.º 1
0
 /**
  * @return Money
  */
 public function getTotalBidAmount()
 {
     $total = $this->select(array('total'))->withColumn('SUM(bid_amount)', 'total')->findOne();
     return Money::valueOf($total, Currency::valueOf('USD'));
 }
Ejemplo n.º 2
0
 public function getCurrency()
 {
     return Currency::valueOf($this->getCurrencyCode());
 }