symfony2 deleteForm not working fine
问题 I have 2 entities. I would like to delete row of Service. I tried: $em = $this->getDoctrine()->getEntityManager(); $service = $em->getRepository('AppBundle:Service')->find(1); $em->remove($service); $em->flush(); On this way it deleted all of the row, which containing this category id. Sry for my bad English. Let me explain you on the other way: BEFORE AFTER delete id 1 from service +----+------+ +----+------+-----+ +----+------+ +----+------+-----+ + id + ca_ + + id + se_ + ca_ + + id + ca_