Explorar el Código

FD3-445 set null en cablemodem al borrar cablemodemModel

Espinoza Guillermo hace 6 años
padre
commit
d871234b83
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/CablemodemBundle/Entity/Cablemodem.php

+ 1 - 0
src/CablemodemBundle/Entity/Cablemodem.php

@@ -96,6 +96,7 @@ class Cablemodem implements DeviceInterface, TenancyIdTraitInterface, LocationIn
 
     /**
      * @ORM\ManyToOne(targetEntity="CablemodemModel", fetch="EXTRA_LAZY")
+     * @ORM\JoinColumn(onDelete="SET NULL")
      * 
      * @JMS\MaxDepth(1)
      */