GeneratorBundle icon indicating copy to clipboard operation
GeneratorBundle copied to clipboard

Missing method when adding a `ManyToMany` association

Open jibundeyare opened this issue 8 years ago • 0 comments

When I add a ManyToMany association mapping to the Post, class between Post and Category classes, I expect the generator to add also this method :

    /**
     * Set tags
     *
     * @param \AppBundle\Entity\Tag $tags
     *
     * @return Category
     */
    public function setTags(\AppBundle\Entity\Tag $tags = null)
    {
        $this->tags = $tags;

        return $this;
    }

jibundeyare avatar Nov 12 '17 23:11 jibundeyare