Make Entity::delete() work properly
by adding $em->flush($entity)
entity_list.phtml changes
- added <thead/> and <tbody/>
- add check for null associations to prevent bug