public function ajaxAddStockPlacementVaccinesAction() { $placement = new Model_Placements(); $placement->form_values = $this->_request->getParams(); $id = $placement->form_values['placement_loc_id']; $placement->addPlaceStockVaccines(); $placement_location = $placement->locationType($id); // $this->_em->getRepository('PlacementLocations')->find($id); if ($placement_location == 99) { $this->redirect("/stock/stock-bin-placement-vaccines?id={$id}"); } else { $this->redirect("/stock/stock-bin-placement?id={$id}"); } }