Skip to content

[Insight] Public methods in controller classes should only be actions - in src/…/Controller/SortieController.php, line 49 #3

Description

@tlemesle

in src/ImieTransportBundle/Controller/SortieController.php, line 49

Non-action public method found in controller class

            'titre' => "Sortie d'un produit"
            ]);
    }


    public function updateStock($qte,$produit,$stock){
        $em = $this->getDoctrine()->getManager();
        $newStock = $stock-$qte;
        $produit->setStock($newStock);
        $em->flush();
        if($produit->getAlertMail() && $newStock < $produit->getLimiteStock()){

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions