setCodeBarre('123456-FF-POCHE') ->setPocheNumber(3) ; $manager->persist($dmuCat1); $dmuCat2 = (new DmuCat()) ->setCodeBarre('123456-BB-POCHE') ->setPocheNumber(4) ; $manager->persist($dmuCat2); $dmuCat3 = (new DmuCat()) ->setCodeBarre('123456-CC-POCHE') ->setPocheNumber(5) ; $manager->persist($dmuCat3); $manager->flush(); } }