embed one form into another symfony2
问题 I have two entity forms called 'Orders' and 'Address'. I want to embed Address form into orders form. Both entities are having relation by user column. Address Entity class Address { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(type="string", length=128) */ protected $type; /** * @ORM\ManyToOne(targetEntity="Root\UserBundle\Entity\User", inversedBy="address") * @ORM\JoinColumn(name="user", referencedColumnName="id") *