×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Jorge Alcalá
Added: Jan 16, 2022 4:32 PM
Views: 390
Tags: no tags
  1. $repoKm = $this->getDoctrine()->getRepository(Kilometrajes::class);
  2. $km = $repoKm->find($claKilometraje);
  3. if($km == null){
  4.   $resultado = -1;
  5.   $mensaje = $fk->getNomenclatura('Kilometraje no existe');
  6. }else{
  7.   $entityManager->remove($km);
  8.   $entityManager->flush();
  9. }