예제 #1
0
 /**
  * Batch delete tickets
  *
  * @param array $tickets
  * @return bool
  */
 public function deleteTickets(array $tickets)
 {
     $ids = array();
     foreach ($tickets as $ticket) {
         $ids[] = $ticket->getId();
     }
     return parent::deleteByIds($ids, 'tickets/destroy_many.json');
 }