Generating Entity Getters and Setters in Symfony / Doctrine ORM
问题 I have the following ORM Symfony entity with only properties : <?php namespace Evr\HomeBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="ev_article") * @ORM\Entity */ class Article { /** * * @ORM\Column(name="article_id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * * @ORM\ManyToOne(targetEntity="Subategory",inversedBy="articles") * @ORM\JoinColumn(name="subcategory_id",referencedColumnName="id") */ private $subcategory; /** * *