示例#1
0
 /**
  * 
  * @param int $pedido_cab_id
  * @param int $pedido_det_sec
  * @param int $type_result
  * @return Ambigous <\Dispo\Data\PedidoDetData, NULL>|array
  */
 public function consultarDetallePedido($pedido_cab_id, $pedido_det_sec, $type_result = \Application\Constants\ResultType::OBJETO)
 {
     $PedidoDetDAO = new PedidoDetDAO();
     $PedidoDetDAO->setEntityManager($this->getEntityManager());
     switch ($type_result) {
         case \Application\Constants\ResultType::OBJETO:
             break;
             $PedidoDetData = $PedidoDetDAO->consultar($pedido_cab_id, $pedido_det_sec);
             return $PedidoDetData;
         case \Application\Constants\ResultType::MATRIZ:
             $reg = $PedidoDetDAO->consultarArray($pedido_cab_id, $pedido_det_sec);
             return $reg;
     }
     //end switch
 }