Exemplo 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'));
 }