private function deleteOrdertaskPersonByPpltype($orderid, $ordertype, $ppltype){ $conditions = array('order_id=? AND order_type=? AND type=?', $orderid, $ordertype, $ppltype); $result = \Ordertaskperson::find('all', array('conditions' => $conditions)); foreach($result as $data){ $data->delete(); } }